From 7f4983cf42d28c472826d54412f109cdf9aaa5fa Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Fri, 22 Dec 2023 20:52:24 +0400 Subject: [PATCH] flake.nix: refactor library code --- flake.nix | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/flake.nix b/flake.nix index 18bcdb7..38ece25 100644 --- a/flake.nix +++ b/flake.nix @@ -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 {