diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/freya/packages/gnome-xyz.scm | 57 | ||||
-rw-r--r-- | modules/freya/packages/vim.scm | 2 | ||||
-rw-r--r-- | modules/freya/packages/yarn.scm | 57 |
3 files changed, 114 insertions, 2 deletions
diff --git a/modules/freya/packages/gnome-xyz.scm b/modules/freya/packages/gnome-xyz.scm index d05abf1..6be7624 100644 --- a/modules/freya/packages/gnome-xyz.scm +++ b/modules/freya/packages/gnome-xyz.scm @@ -1,11 +1,12 @@ (define-module (freya packages gnome-xyz) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix gexp) + #:use-module (gnu packages) #:use-module (gnu packages base) #:use-module (gnu packages version-control) #:use-module (gnu packages web) #:use-module (gnu packages bash) - #:use-module (gnu packages) + #:use-module (gnu packages compression) #:use-module (guix packages) #:use-module (guix git-download) #:use-module (guix download) @@ -63,3 +64,57 @@ (description "Lavanda gtk theme for linux desktops") (license license:gpl3)))) +(define-public mint-themes + (package + (name "mint-themes") + (version "2.1.7") + (source + (origin + (method url-fetch) + (uri (string-append "http://packages.linuxmint.com/pool/main/m/mint-themes/mint-themes_" + version "_all.deb")) + (sha256 + (base32 + "19d6b8pr45ga038cvqisa9hvgd3frys2wf218am3hrmair4r27bf")) + (file-name "source.deb"))) + (build-system trivial-build-system) + (native-inputs + (list binutils + tar + xz)) + (arguments + '(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let* ((source (assoc-ref %build-inputs "source")) + (bin (string-append + (assoc-ref %outputs "out") + "/share/themes")) + (cwd (getcwd)) + (deb (string-append cwd + "/source.deb")) + (data (string-append cwd + "/data.tar.xz")) + (themes (string-append cwd + "/usr/share/themes")) + (ar (string-append + (assoc-ref %build-inputs "binutils") + "/bin/ar")) + (tar (string-append + (assoc-ref %build-inputs "tar") + "/bin/tar")) + (xz-bin (string-append + (assoc-ref %build-inputs "xz") + "/bin"))) + (setenv "PATH" (string-append (getenv "PATH") ":" xz-bin)) + (copy-file source deb) + (invoke ar "x" deb "--output" cwd) + (invoke tar "xf" data "-C" cwd) + (mkdir-p bin) + (copy-recursively themes bin))))) + (home-page "https://github.com/linuxmint/mint-themes") + (synopsis "A collection of Mint themes.") + (description "A collection of Mint themes.") + (license license:gpl3+))) + diff --git a/modules/freya/packages/vim.scm b/modules/freya/packages/vim.scm index 60323f3..a11630a 100644 --- a/modules/freya/packages/vim.scm +++ b/modules/freya/packages/vim.scm @@ -42,7 +42,7 @@ (mkdir-p bin) (chdir source) (install-file "plug.vim" bin))))) - (home-page "https://github.com/vinceliuice/Lavanda-gtk-e") + (home-page "https://github.com/junegunn/vim-plug") (synopsis "Minimalist Vim Plugin Manager") (description "Minimalist Vim Plugin Manager") (license license:expat))) diff --git a/modules/freya/packages/yarn.scm b/modules/freya/packages/yarn.scm new file mode 100644 index 0000000..dad667d --- /dev/null +++ b/modules/freya/packages/yarn.scm @@ -0,0 +1,57 @@ +(define-module (freya packages yarn) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix build-system gnu) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix utils) + #:use-module (gnu packages node)) + +(define-public yarn + (package + (name "yarn") + (version "1.22.22") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/yarnpkg/yarn/releases/download/v" + version + "/yarn-v" + version + ".tar.gz")) + (sha256 + (base32 + "181nvynhhrbga3c209v8cd9psk6lqjkc1s9wyzy125lx35j889l8")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (delete 'build) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref %outputs "out")) + (bin (string-append out "/bin")) + (libexec-yarn (string-append out "/libexec/yarn")) + (yarn-js (string-append libexec-yarn "/bin/yarn.js"))) + (mkdir-p bin) + (mkdir-p libexec-yarn) + (copy-recursively "./" libexec-yarn) + (symlink yarn-js (string-append bin "/yarn")) + (symlink yarn-js (string-append bin "/yarnpkg")))))))) + + (inputs `(("node" ,node-lts))) + (synopsis "Fast, reliable, and secure dependency management") + (description + "Yarn is a fast, reliable, and secure dependency management. Fast: Yarn +caches every package it has downloaded, so it never needs to download the +same package again. It also does almost everything concurrently to maximize +resource utilization. This means even faster installs. Reliable: Using a +detailed but concise lockfile format and a deterministic algorithm for install +operations, Yarn is able to guarantee that any installation that works on one +system will work exactly the same on another system. +Secure: Yarn uses checksums to verify the integrity of every installed package +before its code is executed.") + (license license:bsd-2) + (home-page "https://yarnpkg.com"))) |