flake.nix: refactor library code

master
Alexander Tomokhov 2023-12-22 20:52:24 +04:00
parent f0df0830a2
commit 7f4983cf42
1 changed files with 6 additions and 10 deletions

View File

@ -69,16 +69,12 @@
)
//
{
library = pkgs.writeText "library.sh" (
(builtins.readFile ./library.sh) + (lib.strings.concatStrings
[
"export PATH="
(lib.makeBinPath
(map (x: self.packages.${system}.${x.name}) scripts-with-envs))
":$PATH"
]
)
);
library = pkgs.writeText "library.sh" (lib.strings.concatStrings [
(builtins.readFile ./library.sh)
"export PATH=$PATH:"
(lib.makeBinPath
(map (x: self.packages.${system}.${x.name}) scripts-with-envs))
]);
};
devShells.${system}.default = pkgs.mkShell
{