writePython{2,3} : fixed compile errors

This commit is contained in:
Ingolf Wagner
2018-09-04 04:31:24 +02:00
parent bd003832d2
commit b8e4324642

View File

@@ -302,7 +302,7 @@ pkgs: oldpkgs: {
writePython2 = name: { deps ? [], flakeIgnore ? [] }:
let
py = pkgs.python2.withPackages (ps: deps);
ignoreAttribute = lib.optionalString (ignore != []) "--ignore ${lib.concatMapStringsSep "," lib.escapeShellArg flakeIgnore}";
ignoreAttribute = optionalString (flakeIgnore != []) "--ignore ${concatMapStringsSep "," escapeShellArg flakeIgnore}";
in
pkgs.makeScriptWriter {
interpreter = "${py}/bin/python";
@@ -317,7 +317,7 @@ pkgs: oldpkgs: {
writePython3 = name: { deps ? [], flakeIgnore ? [] }:
let
py = pkgs.python3.withPackages (ps: deps);
ignoreAttribute = lib.optionalString (ignore != []) "--ignore ${lib.concatMapStringsSep "," lib.escapeShellArg flakeIgnore}";
ignoreAttribute = optionalString (flakeIgnore != []) "--ignore ${concatMapStringsSep "," escapeShellArg flakeIgnore}";
in
pkgs.makeScriptWriter {
interpreter = "${py}/bin/python";