writers: add writePython{2,3}Bin

This commit is contained in:
lassulus 2018-01-02 12:59:18 +01:00
parent c25054b4a0
commit 5d7c8bf5b4

View File

@ -294,6 +294,9 @@ with import <stockholm/lib>;
'';
};
writePython2Bin = d: name:
pkgs.writePython2 d "/bin/${name}";
writePython3 = deps:
let
py = pkgs.python3.withPackages(ps: attrVals deps ps);
@ -305,6 +308,9 @@ with import <stockholm/lib>;
'';
};
writePython3Bin = d: name:
pkgs.writePython3 d "/bin/${name}";
writeSed = pkgs.makeScriptWriter {
interpreter = "${pkgs.gnused}/bin/sed -f";
};