aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-09-18 19:29:19 +0200
committertv <tv@krebsco.de>2018-09-18 19:29:19 +0200
commitcf9ac094e0f6d9649f050452c0df539281237e54 (patch)
treea4ffecdc2b856198c777ec8d951227af8466a53a /pkgs
parentc27a9416e8ee04d708b11b48f8cf1a055c0cc079 (diff)
parent16b43f218d142de49fbd8fae77e6e2c057bfb9d6 (diff)
Merge remote-tracking branch 'lass/master'derp
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/default.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index a5582f3..c374124 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -319,6 +319,23 @@ pkgs: oldpkgs: {
${pkgs.cabal2nix}/bin/cabal2nix ${path} > $out
'');
+ writePerl = name: { deps ? [] }:
+ let
+ perl-env = pkgs.buildEnv {
+ name = "perl-environment";
+ paths = deps;
+ pathsToLink = [
+ "/lib/perl5/site_perl"
+ ];
+ };
+ in
+ pkgs.makeScriptWriter {
+ interpreter = "${pkgs.perl}/bin/perl -I ${perl-env}/lib/perl5/site_perl";
+ } name;
+
+ writePerlBin = name:
+ pkgs.writePerl "/bin/${name}";
+
writePython2 = name: { deps ? [], flakeIgnore ? [] }:
let
py = pkgs.python2.withPackages (ps: deps);