aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-02-23 11:26:30 -0300
committerEuAndreh <eu@euandre.org>2021-02-23 11:26:30 -0300
commit8d4c255a000a605621b4bb3a0144ac4e1c6a43e0 (patch)
tree0dcb63cd76ac2d60a6d50014dbaaccdc2766d8e6
parentREADME.md: Use cons* over append + list (diff)
downloadpackage-repository-8d4c255a000a605621b4bb3a0144ac4e1c6a43e0.tar.gz
package-repository-8d4c255a000a605621b4bb3a0144ac4e1c6a43e0.tar.xz
Add posix-c99 package
Diffstat (limited to '')
-rw-r--r--src/xyz/euandreh/posix.scm22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/xyz/euandreh/posix.scm b/src/xyz/euandreh/posix.scm
new file mode 100644
index 0000000..cfc8e2e
--- /dev/null
+++ b/src/xyz/euandreh/posix.scm
@@ -0,0 +1,22 @@
+(define-module (xyz euandreh posix)
+ #:use-module (guix packages)
+ #:use-module (guix utils)
+ #:use-module (gnu packages c))
+
+(define-public tcc-c99
+ (package
+ (inherit tcc)
+ (name "posix-c99")
+ (arguments
+ `(,@(ensure-keyword-arguments
+ (package-arguments tcc)
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'ln-alias
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (symlink (string-append out "/bin/tcc")
+ (string-append out "/bin/c99"))))))))))))
+
+(list
+ tcc-c99)