diff options
author | EuAndreh <eu@euandre.org> | 2025-01-18 14:42:08 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-01-18 14:42:08 -0300 |
commit | bdb8b5c98ab29c418b10f3d313c0e659848085e2 (patch) | |
tree | 6f9538072454ff0b58f39d95cc25a56c913b1da6 /etc/guix | |
parent | etc/sh/rc: Replace -Wfatal-errors with -fmax-errors=10 (diff) | |
download | dotfiles-bdb8b5c98ab29c418b10f3d313c0e659848085e2.tar.gz dotfiles-bdb8b5c98ab29c418b10f3d313c0e659848085e2.tar.xz |
etc/guix/home.scm: Add tiniercc and pcc packages
Diffstat (limited to 'etc/guix')
-rw-r--r-- | etc/guix/home.scm | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/etc/guix/home.scm b/etc/guix/home.scm index 0697dd4..3adb0f8 100644 --- a/etc/guix/home.scm +++ b/etc/guix/home.scm @@ -22,10 +22,12 @@ (guix packages) (guix utils)) (use-package-modules + c flex freedesktop gcc messaging + musl python-build wm xdisorg) @@ -33,6 +35,32 @@ +(define tiniercc + (package + (inherit tcc) + (name "tiniercc") + (arguments + (substitute-keyword-arguments (package-arguments tcc) + ((#:tests? _ #f) #f) + ((#:configure-flags _) + #~(list + "--enable-static" + "--config-musl" + (string-append + "--crtprefix=" + #$(file-append musl "/lib")))) + ((#:phases phases) + #~(modify-phases #$phases + (add-after 'install 'ln-alias + (lambda _ + (symlink (string-append #$out "/bin/tcc") + (string-append #$out "/bin/cc")) + (symlink (string-append #$out "/bin/tcc") + (string-append #$out "/bin/c99")))))))) + (native-inputs + (modify-inputs (package-native-inputs tcc) + (append which))))) + (define gm2 (package (inherit gcc-14) @@ -407,7 +435,9 @@ gcc-toolchain:static cppcheck clang - tcc + ;; tcc + ;; musl + pcc ;; compcert ; broken quickjs m4 @@ -478,6 +508,7 @@ firefox)) (list gm2 + tiniercc q:go-full) (list (script "cronjob" |