diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2014-11-12 14:28:36 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2014-11-12 14:28:36 +0100 |
| commit | 84dfb4582121480cec7a8cfb73725ef006b747b5 (patch) | |
| tree | 7e4df514240aee3b88590e5ac13c1df8f30ec350 | |
| parent | 0ecc3bf3092ad5e18e3ef18822b2ba8c1a8813cf (diff) | |
gnu: Introduce (gnu artwork) module.
* gnu/artwork.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.
* gnu/services/xorg.scm: Use it.
(%artwork-repository): Remove.
* gnu/system/grub.scm: Use it.
(%artwork-repository): Remove.
| -rw-r--r-- | gnu-system.am | 1 | ||||
| -rw-r--r-- | gnu/artwork.scm | 40 | ||||
| -rw-r--r-- | gnu/services/xorg.scm | 13 | ||||
| -rw-r--r-- | gnu/system/grub.scm | 12 |
4 files changed, 43 insertions, 23 deletions
diff --git a/gnu-system.am b/gnu-system.am index 98041e02fa4..e6cb2ef73f8 100644 --- a/gnu-system.am +++ b/gnu-system.am | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | GNU_SYSTEM_MODULES = \ | 24 | GNU_SYSTEM_MODULES = \ |
| 25 | gnu.scm \ | 25 | gnu.scm \ |
| 26 | gnu/artwork.scm \ | ||
| 26 | gnu/packages.scm \ | 27 | gnu/packages.scm \ |
| 27 | gnu/packages/abiword.scm \ | 28 | gnu/packages/abiword.scm \ |
| 28 | gnu/packages/acct.scm \ | 29 | gnu/packages/acct.scm \ |
diff --git a/gnu/artwork.scm b/gnu/artwork.scm new file mode 100644 index 00000000000..cf405d1258e --- /dev/null +++ b/gnu/artwork.scm | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | ||
| 2 | ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> | ||
| 3 | ;;; | ||
| 4 | ;;; This file is part of GNU Guix. | ||
| 5 | ;;; | ||
| 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | ||
| 7 | ;;; under the terms of the GNU General Public License as published by | ||
| 8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | ||
| 9 | ;;; your option) any later version. | ||
| 10 | ;;; | ||
| 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | ||
| 12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | ;;; GNU General Public License for more details. | ||
| 15 | ;;; | ||
| 16 | ;;; You should have received a copy of the GNU General Public License | ||
| 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | |||
| 19 | (define-module (gnu artwork) | ||
| 20 | #:use-module (guix packages) | ||
| 21 | #:use-module (guix git-download) | ||
| 22 | #:export (%artwork-repository)) | ||
| 23 | |||
| 24 | ;;; Commentary: | ||
| 25 | ;;; | ||
| 26 | ;;; Common place for the definition of the Guix artwork repository. | ||
| 27 | ;;; | ||
| 28 | ;;; Code: | ||
| 29 | |||
| 30 | (define %artwork-repository | ||
| 31 | (origin | ||
| 32 | (method git-fetch) | ||
| 33 | (uri (git-reference | ||
| 34 | (url "git://git.savannah.gnu.org/guix/guix-artwork.git") | ||
| 35 | (commit "71d77b1"))) | ||
| 36 | (sha256 | ||
| 37 | (base32 | ||
| 38 | "03j0fwh6j5knzbfjj3cs0a30cssy706p18b8x7d1p91p29hlzjif")))) | ||
| 39 | |||
| 40 | ;;; artwork.scm ends here | ||
diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index 1f00d80042c..9c075acd0f7 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm | |||
| @@ -17,8 +17,7 @@ | |||
| 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 18 | 18 | ||
| 19 | (define-module (gnu services xorg) | 19 | (define-module (gnu services xorg) |
| 20 | #:use-module (guix packages) | 20 | #:use-module (gnu artwork) |
| 21 | #:use-module (guix git-download) | ||
| 22 | #:use-module (gnu services) | 21 | #:use-module (gnu services) |
| 23 | #:use-module (gnu system linux) ; 'pam-service' | 22 | #:use-module (gnu system linux) ; 'pam-service' |
| 24 | #:use-module ((gnu packages base) #:select (canonical-package)) | 23 | #:use-module ((gnu packages base) #:select (canonical-package)) |
| @@ -162,16 +161,6 @@ EndSection | |||
| 162 | ;;; SLiM log-in manager. | 161 | ;;; SLiM log-in manager. |
| 163 | ;;; | 162 | ;;; |
| 164 | 163 | ||
| 165 | (define %artwork-repository | ||
| 166 | (origin | ||
| 167 | (method git-fetch) | ||
| 168 | (uri (git-reference | ||
| 169 | (url "git://git.savannah.gnu.org/guix/guix-artwork.git") | ||
| 170 | (commit "71d77b1"))) | ||
| 171 | (sha256 | ||
| 172 | (base32 | ||
| 173 | "03j0fwh6j5knzbfjj3cs0a30cssy706p18b8x7d1p91p29hlzjif")))) | ||
| 174 | |||
| 175 | (define %default-slim-theme | 164 | (define %default-slim-theme |
| 176 | ;; Theme based on work by Felipe López. | 165 | ;; Theme based on work by Felipe López. |
| 177 | #~(string-append #$%artwork-repository "/slim")) | 166 | #~(string-append #$%artwork-repository "/slim")) |
diff --git a/gnu/system/grub.scm b/gnu/system/grub.scm index dad39bfdc78..00e09f97364 100644 --- a/gnu/system/grub.scm +++ b/gnu/system/grub.scm | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | #:use-module (guix monads) | 24 | #:use-module (guix monads) |
| 25 | #:use-module (guix gexp) | 25 | #:use-module (guix gexp) |
| 26 | #:use-module (guix download) | 26 | #:use-module (guix download) |
| 27 | #:use-module (guix git-download) | 27 | #:use-module (gnu artwork) |
| 28 | #:autoload (gnu packages grub) (grub) | 28 | #:autoload (gnu packages grub) (grub) |
| 29 | #:autoload (gnu packages inkscape) (inkscape) | 29 | #:autoload (gnu packages inkscape) (inkscape) |
| 30 | #:autoload (gnu packages imagemagick) (imagemagick) | 30 | #:autoload (gnu packages imagemagick) (imagemagick) |
| @@ -77,16 +77,6 @@ | |||
| 77 | (color-highlight grub-theme-color-highlight | 77 | (color-highlight grub-theme-color-highlight |
| 78 | (default '((fg . white) (bg . blue))))) | 78 | (default '((fg . white) (bg . blue))))) |
| 79 | 79 | ||
| 80 | (define %artwork-repository | ||
| 81 | (origin | ||
| 82 | (method git-fetch) | ||
| 83 | (uri (git-reference | ||
| 84 | (url "git://git.savannah.gnu.org/guix/guix-artwork.git") | ||
| 85 | (commit "281157a"))) | ||
| 86 | (sha256 | ||
| 87 | (base32 | ||
| 88 | "02x1myh013mzqnr28d4k1mxs4malv5vszpxdwkjarbhbbkchypz5")))) | ||
| 89 | |||
| 90 | (define %background-image | 80 | (define %background-image |
| 91 | (grub-image | 81 | (grub-image |
| 92 | (aspect-ratio 4/3) | 82 | (aspect-ratio 4/3) |
