aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Wilken2024-02-01 15:07:38 +0100
committerTimo Wilken2024-02-01 15:07:38 +0100
commitb422ea59e0891b50482a11bef62c49ae0e4ed3c2 (patch)
tree9011e7ac52d996353c9630d9f9817ed6ae22f3c5
parent19b44815598ce19105eafb299900d89f9a7c2530 (diff)
Add alienv.guix wrapper script for alienv
-rw-r--r--tw/home.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/tw/home.scm b/tw/home.scm
index ee72b669..7b2fc295 100644
--- a/tw/home.scm
+++ b/tw/home.scm
@@ -585,6 +585,16 @@ show_border=1
(".local/bin/sessionmenu" ,(local-file "home/files/sessionmenu" #:recursive? #t))
(".local/bin/passmenu" ,(local-file "home/files/passmenu" #:recursive? #t))
(".local/bin/volume" ,(local-file "home/files/volume" #:recursive? #t))
+ (".local/bin/alienv.guix"
+ ,(program-file "alienv.guix"
+ #~(begin
+ (setenv "TERM" "xterm-256color") ; "modules" gets confused if this is unset
+ (apply execlp "guix" "guix" "shell" "--pure" "--container" "--emulate-fhs" "--preserve=^TERM$"
+ "bash" "util-linux" "coreutils" ; basic shell utilities (also needed by alienv)
+ "which" "sed" "grep" "findutils" "procps" "gawk" "modules" ; alienv requirements
+ "openssl@3" ; some packages need openssl
+ "xz" ; XRootD needs liblzma
+ "python-alibuild" "--" "alienv" (cdr (command-line))))))
(".local/share/applications/emacsclient.desktop"
,(local-file "home/files/emacsclient.desktop"))))))