summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-01-02 12:59:18 +0100
committerlassulus <lassulus@lassul.us>2018-01-02 12:59:18 +0100
commit5d7c8bf5b4e718772e56512a878c0e65c154c190 (patch)
treef9e79c422cbe7016c8cad9d582af5d778dccf956 /krebs
parentc25054b4a0c034b9c410799bf29486820d9778d7 (diff)
writers: add writePython{2,3}Bin
Diffstat (limited to 'krebs')
-rw-r--r--krebs/5pkgs/writers.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/krebs/5pkgs/writers.nix b/krebs/5pkgs/writers.nix
index 0cc4efb51..a48fc0f87 100644
--- a/krebs/5pkgs/writers.nix
+++ b/krebs/5pkgs/writers.nix
@@ -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";
};