mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
utils: with-nix-profile: Use a shorter example.
This commit is contained in:
1 file changed
+6
-22
@@ -351,28 +351,12 @@ this macro.
|
|||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
(with-nix-profile \"/tmp/test\"
|
(with-nix-profile \"/nix/var/nix/profiles/guix-system-nix-profile\"
|
||||||
(list hello
|
(append (list (nix-shell-wrapper \"readest\"
|
||||||
|
'(\"github:NixOS/nixpkgs/714a5f8c4ead6b31148d829288440ed033ccc041#readest\")
|
||||||
(nix-shell-wrapper \"cowsay-hello-coreutils-env\"
|
#:run-command '(\"readest\")
|
||||||
'(\"github:NixOS/nixpkgs/714a5f8c4ead6b31148d829288440ed033ccc041#coreutils\"
|
#:environment-set '((\"LANG\" . \"C.UTF-8\"))))
|
||||||
\"github:NixOS/nixpkgs/714a5f8c4ead6b31148d829288440ed033ccc041#cowsay\")
|
%base-packages))
|
||||||
#:run-command '(\"env\" \"LANG=C.UTF-8\" \"cowsay\" \"hello\"))
|
|
||||||
|
|
||||||
(nix-shell-wrapper \"cowsay-hello\"
|
|
||||||
\"github:NixOS/nixpkgs/714a5f8c4ead6b31148d829288440ed033ccc041#cowsay\"
|
|
||||||
#:run-command '(\"cowsay\" \"hello\")
|
|
||||||
#:environment-set '((\"LANG\" . \"C.UTF-8\")))
|
|
||||||
|
|
||||||
(nix-shell-wrapper \"python-with-numpy\"
|
|
||||||
#:expression \"with (import (builtins.getFlake \\\"github:NixOS/nixpkgs/714a5f8c4ead6b31148d829288440ed033ccc041\\\") {}); python3.withPackages (ps: [ps.numpy])\"
|
|
||||||
#:run-command '(\"python\"))
|
|
||||||
|
|
||||||
(nix-shell-wrapper \"coreutils-env\"
|
|
||||||
\"coreutils\"
|
|
||||||
#:expression (local-file \"/tmp/nixpkgs.nix\")
|
|
||||||
#:run-command '(\"env\")
|
|
||||||
#:environment-keep #f)))
|
|
||||||
"
|
"
|
||||||
(let ((wrappers
|
(let ((wrappers
|
||||||
others
|
others
|
||||||
|
|||||||
Reference in new issue
Block a user