aboutsummaryrefslogtreecommitdiff
path: root/src/xyz/euandreh/packages/euandreh.scm
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-02-08 16:15:37 -0300
committerEuAndreh <eu@euandre.org>2021-02-08 16:15:37 -0300
commitd749e053e6db365069cb9b2ef47a78b06f9e7361 (patch)
tree4fc25a0e5510f33b83000fe9aacdfc933cdff4a0 /src/xyz/euandreh/packages/euandreh.scm
parentAdd .guix-* files for Guix channel (diff)
downloadpackage-repository-d749e053e6db365069cb9b2ef47a78b06f9e7361.tar.gz
package-repository-d749e053e6db365069cb9b2ef47a78b06f9e7361.tar.xz
Add Guix euandreh.scm
Diffstat (limited to 'src/xyz/euandreh/packages/euandreh.scm')
-rw-r--r--src/xyz/euandreh/packages/euandreh.scm58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/xyz/euandreh/packages/euandreh.scm b/src/xyz/euandreh/packages/euandreh.scm
new file mode 100644
index 0000000..205990d
--- /dev/null
+++ b/src/xyz/euandreh/packages/euandreh.scm
@@ -0,0 +1,58 @@
+(define-module (xyz euandreh packages euandreh)
+ #:use-module ((ice-9 textual-ports) #:prefix textual-ports:)
+ #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix transformations)
+ #:use-module (guix gexp)
+ #:use-module (guix packages)
+ #:use-module (guix download)
+ #:use-module (guix git-download)
+ #:use-module (guix utils)
+ #:use-module (guix store)
+ #:use-module (guix build-system gnu))
+
+(define (read-from-store-file src name)
+ (run-with-store (open-connection)
+ (gexp->script "read-from-file-in-store"
+ #~(string-trim-both
+ (call-with-input-file
+ #$(file-append src name)
+ textual-ports:get-string-all)))))
+
+(define (euandreh-package name version-prefix version hash)
+ (package
+ (name name)
+ (version version)
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://git.euandreh.xyz/"
+ name
+ "/snapshot/"
+ name
+ "-"
+ version-prefix
+ version
+ ".tar.gz"))
+ (hash hash)))
+ (build-system gnu-build-system)
+ ;; This shouldn't be necessary, but
+ ;; the `gnu-build-system' doesn't provide a c99 variable
+ (arguments `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))))
+ (synopsis (file-append source "/description"))
+ (description "FIXME")
+ (home-page (string-append "https://" name ".euandreh.xyz"))
+ (license license:agpl3+)))
+
+(define-public remembering
+ (euandreh-package
+ "remembering"
+ ""
+ "cca66c6f53e8bce857faae88368c0b07e6ace9e1"
+ (content-hash "1b90cpnv9p6p1cggiv6kp2q6v6lqhsv2q1zk6djnylfzzc8hszay")))
+
+(define-public autoqemu
+ (euandreh-package
+ "autoqemu"
+ "5c44e0d0fa46ccd35c28e48849fcd5153fe41e5a"
+ ""
+ (content-hash "15zxy86dvahshrghngkb70g6bc0cvz7h547vmh4fkaxgh8zh5ahg")))