summaryrefslogtreecommitdiff
path: root/modules/freya/packages/gnome-xyz.scm
blob: a4d8732c1988df2e1b4bea8ed02f7b45fa817c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
(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 compression)
               #:use-module (guix packages)
               #:use-module (guix git-download)
               #:use-module (guix download)
               #:use-module (guix build-system trivial)
               #:use-module (guix utils))

(define-public lavanda-gtk-theme
  (let ((commit "44c74ad34d272e07b91f779e62e63b6ef8645655"))
  (package
   (name "lavanda-gtk-theme")
   (version (git-version "" "0" commit))
   (source
     (origin
      (method git-fetch)
      (uri (git-reference
             (url "https://github.com/vinceliuice/Lavanda-gtk-theme.git")
             (commit commit)))
     (sha256
       (base32
         "1q253kl5lw9dpbmwaf715brdjka7b3s3kpl4i6s262dji84pp3dc"))
     (file-name (git-file-name name version))))
   (build-system trivial-build-system)
   (inputs
     `(("sassc" ,sassc)
       ("coreutils" ,coreutils)
       ("sed" ,sed)
       ("bash" ,bash)))
   (arguments
     '(#:modules ((guix build utils))
       #:builder
       (begin
         (use-modules (guix build utils))
         (let* ((out    (assoc-ref %outputs "out"))
                (bin    (string-append out "/share/themes"))
                (bash   (string-append
                          (assoc-ref %build-inputs "bash")
                          "/bin/sh"))
                (coreutils (string-append
                          (assoc-ref %build-inputs "coreutils")
                          "/bin"))
                (sed    (string-append
                          (assoc-ref %build-inputs "sed")
                          "/bin"))
                (sassc  (string-append
                          (assoc-ref %build-inputs "sassc")
                          "/bin"))
                (source (assoc-ref %build-inputs "source")))
           (copy-recursively source (getcwd))
           (setenv "PATH" (string-append (getenv "PATH") ":" coreutils ":" sed ":" sassc))
           (mkdir-p bin)
           (invoke bash "build.sh")
           (invoke bash "install.sh" "-d" bin)))))
   (home-page "https://github.com/vinceliuice/Lavanda-gtk-theme")
   (synopsis "Lavanda gtk theme for linux desktops")
   (description "Lavanda gtk theme for linux desktops")
   (license license:gpl3))))

(define-public mint-themes
  (package
   (name "mint-themes")
   (version "2.1.8")
   (source
     (origin
      (method url-fetch)
      (uri (string-append "http://packages.linuxmint.com/pool/main/m/mint-themes/mint-themes_"
                          version "_all.deb"))
      (sha256
       (base32
        "0a1j566a0p0nxmzil5z6qidzqd9dal1r5lv90x2v5s2slm162f3a"))
      (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+)))