flake.nix: refactor library code
parent
f0df0830a2
commit
7f4983cf42
16
flake.nix
16
flake.nix
|
@ -69,16 +69,12 @@
|
||||||
)
|
)
|
||||||
//
|
//
|
||||||
{
|
{
|
||||||
library = pkgs.writeText "library.sh" (
|
library = pkgs.writeText "library.sh" (lib.strings.concatStrings [
|
||||||
(builtins.readFile ./library.sh) + (lib.strings.concatStrings
|
(builtins.readFile ./library.sh)
|
||||||
[
|
"export PATH=$PATH:"
|
||||||
"export PATH="
|
(lib.makeBinPath
|
||||||
(lib.makeBinPath
|
(map (x: self.packages.${system}.${x.name}) scripts-with-envs))
|
||||||
(map (x: self.packages.${system}.${x.name}) scripts-with-envs))
|
]);
|
||||||
":$PATH"
|
|
||||||
]
|
|
||||||
)
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
devShells.${system}.default = pkgs.mkShell
|
devShells.${system}.default = pkgs.mkShell
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue