aboutsummaryrefslogtreecommitdiff
path: root/build-aux/cuirass/hurd-manifest.scm
blob: 0be8943cd1b5aa1e0f97748cf2dcc6358b1edfc7 (about) (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
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:
;;;
;;; This file defines a manifest with a selection of packages for Cuirass to
;;; build for GNU/Hurd.
;;;
;;; Code:

(use-modules (gnu)
             (gnu system hurd)
             (guix packages)
             (guix utils)
             (ice-9 match)
             (srfi srfi-1))

(use-package-modules
 base commencement compression file gawk gdb gettext guile
 hurd less m4 package-management python ssh version-control)

(define (input->package input)
  "Return the INPUT as package, or #f."
  (match input
    ((label (and (? package?) package))
     package)
    ((label (and (? package?) package . output))
     (cons package output))
    (_ #f)))

(define guix-dependencies
  (filter-map input->package
              (fold alist-delete (package-direct-inputs guix)
                    '("glibc-utf8-locales" "graphviz" "po4a"))))

(define (package-without-tests p)
  (package/inherit p
    (arguments
     (substitute-keyword-arguments (package-arguments p)
       ((#:tests? _ #f) #f)))))

(packages->manifest
 (cons*
  ;; where it all starts
  hello

  ;; development utililities
  diffutils file findutils gawk grep gzip less m4 openssh-sans-x tar xz

  ;; development packages
  gcc-toolchain gdb-minimal git-minimal gnu-make

  ;; guix environment guix --without-tests=python-minimal --without-tests=gettext-minimal
  (package-without-tests gettext-minimal)
  (package-without-tests python-minimal)

  (append
   guix-dependencies
   (delete guile-3.0 %base-packages/hurd))))
4 +0200'>2018-06-01gexp: Add 'with-extensions'....Ludovic Courtès 2018-01-08services: guix: Add 'log-compression' option....Ludovic Courtès 2017-12-01weather: Use (guix progress) for progress report....Ludovic Courtès 2017-05-18union: Gracefully handle dangling symlinks in the input....Ludovic Courtès 2017-05-04dir-locals.el: Add 'modify-phases' keywords....Alex Kost 2017-04-18Add (guix workers)....Ludovic Courtès 2017-01-28Add (guix memoization)....Ludovic Courtès 2016-10-04Set Emacs config variable sentence-end-double-space....Hartmut Goebel 2016-07-19Add (guix zlib)....Ludovic Courtès 2016-07-12gexp: Add 'with-imported-modules' macro....Ludovic Courtès 2015-10-28services: Add 'modify-services'....Ludovic Courtès