aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)