-
Notifications
You must be signed in to change notification settings - Fork 0
/
guix.scm
76 lines (72 loc) · 2.67 KB
/
guix.scm
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
;;; Copyright © 2023 Andy Wingo
;;;
;;; Whippet is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU Lesser General Public License as
;;; published by the Free Software Foundation; either version 3 of the
;;; License, or (at your option) any later version.
;;;
;;; Whippet 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
;;; Lesser General Public License for more details.
;;;
;;; You should have received a copy of the GNU Lesser General Public
;;; License along with Whippet. If not, see
;;; <http://www.gnu.org/licenses/>.
;; This file defines a Guix package. It can be used to spawn an
;; interactive development environment:
;;
;; guix shell
;;
;; Or it can be used to build Guile from a checkout in an isolated
;; environment:
;;
;; guix build -f guix.scm
;;
;; Likewise, you may cross-compile it:
;;
;; guix build -f guix.scm --target=x86_64-w64-mingw32
;;
;; … or perform a native build for another architecture, assuming
;; either offloading or transparent QEMU emulation is set up:
;;
;; guix build -f guix.scm -s riscv64-linux
(define-module (whiffle-package)
#:use-module (guix)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages base)
#:use-module (gnu packages bdw-gc)
#:use-module (gnu packages commencement)
#:use-module (gnu packages guile)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages version-control))
(define-public whiffle
(let ((vcs-file? (or (git-predicate
(string-append (current-source-directory)
"/../.."))
(const #t))))
(package
(name "whiffle")
(version "0.0.1-git")
(source (local-file "../.." "whiffle-checkout"
#:recursive? #t
#:select? vcs-file?))
(build-system gnu-build-system)
(arguments
(list #:phases
#~(modify-phases %standard-phases
(delete 'configure))))
(native-inputs
(list guile-next))
(propagated-inputs
(list gcc-toolchain gnu-make libgc pkg-config))
(outputs '("out"))
(synopsis "Scheme implementation intended to test the Whippet garbage collector")
(description
"Whiffle is a very simple compile-to-C Scheme implementation, intended to be a
testbed for development of the Whippet garbage collector.")
(home-page "https://github.com/wingo/whiffle/")
(license license:lgpl3+))))
whiffle