-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathguix.scm
More file actions
71 lines (69 loc) · 2.39 KB
/
guix.scm
File metadata and controls
71 lines (69 loc) · 2.39 KB
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
;; SPDX-License-Identifier: PMPL-1.0-or-later
;; Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
;;
;; Guix package definition for a2ml-pre-commit
;;
;; Usage:
;; guix shell -D -f guix.scm # Enter development shell
;; guix build -f guix.scm # Build package
;;
;; TODO: Replace a2ml-pre-commit and customize inputs for your language/stack.
;; See: https://guix.gnu.org/manual/en/html_node/Defining-Packages.html
(use-modules (guix packages)
(guix gexp)
(guix git-download)
(guix build-system gnu)
(guix licenses)
(gnu packages base))
(package
(name "a2ml-pre-commit")
(version "0.1.0")
(source (local-file "." "source"
#:recursive? #t
#:select? (lambda (file stat)
(not (string-contains file ".git")))))
(build-system gnu-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
;; TODO: Customize build phases for your project
;; Examples for common stacks:
;;
;; Rust:
;; (replace 'build (lambda _ (invoke "cargo" "build" "--release")))
;; (replace 'check (lambda _ (invoke "cargo" "test")))
;;
;; Elixir:
;; (replace 'build (lambda _ (invoke "mix" "compile")))
;; (replace 'check (lambda _ (invoke "mix" "test")))
;;
;; Zig:
;; (replace 'build (lambda _ (invoke "zig" "build")))
;; (replace 'check (lambda _ (invoke "zig" "build" "test")))
(delete 'configure)
(delete 'build)
(delete 'check)
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(mkdir-p (string-append out "/share/doc"))
(copy-file "README.adoc"
(string-append out "/share/doc/README.adoc"))))))))
(native-inputs
(list
;; TODO: Add build-time dependencies
;; Examples:
;; rust (gnu packages rust)
;; elixir (gnu packages elixir)
;; zig (gnu packages zig)
))
(inputs
(list
;; TODO: Add runtime dependencies
))
(home-page "https://github.com/hyperpolymath/a2ml-pre-commit")
(synopsis "")
(description "RSR-compliant project. See README.adoc for details.")
(license (list
;; PMPL-1.0-or-later extends MPL-2.0
mpl2.0)))