writePython{2,3} : fixed compile errors
This commit is contained in:
@@ -302,7 +302,7 @@ pkgs: oldpkgs: {
|
|||||||
writePython2 = name: { deps ? [], flakeIgnore ? [] }:
|
writePython2 = name: { deps ? [], flakeIgnore ? [] }:
|
||||||
let
|
let
|
||||||
py = pkgs.python2.withPackages (ps: deps);
|
py = pkgs.python2.withPackages (ps: deps);
|
||||||
ignoreAttribute = lib.optionalString (ignore != []) "--ignore ${lib.concatMapStringsSep "," lib.escapeShellArg flakeIgnore}";
|
ignoreAttribute = optionalString (flakeIgnore != []) "--ignore ${concatMapStringsSep "," escapeShellArg flakeIgnore}";
|
||||||
in
|
in
|
||||||
pkgs.makeScriptWriter {
|
pkgs.makeScriptWriter {
|
||||||
interpreter = "${py}/bin/python";
|
interpreter = "${py}/bin/python";
|
||||||
@@ -317,7 +317,7 @@ pkgs: oldpkgs: {
|
|||||||
writePython3 = name: { deps ? [], flakeIgnore ? [] }:
|
writePython3 = name: { deps ? [], flakeIgnore ? [] }:
|
||||||
let
|
let
|
||||||
py = pkgs.python3.withPackages (ps: deps);
|
py = pkgs.python3.withPackages (ps: deps);
|
||||||
ignoreAttribute = lib.optionalString (ignore != []) "--ignore ${lib.concatMapStringsSep "," lib.escapeShellArg flakeIgnore}";
|
ignoreAttribute = optionalString (flakeIgnore != []) "--ignore ${concatMapStringsSep "," escapeShellArg flakeIgnore}";
|
||||||
in
|
in
|
||||||
pkgs.makeScriptWriter {
|
pkgs.makeScriptWriter {
|
||||||
interpreter = "${py}/bin/python";
|
interpreter = "${py}/bin/python";
|
||||||
|
|||||||
Reference in New Issue
Block a user