diff options
author | tv <tv@krebsco.de> | 2018-09-18 19:29:19 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-09-18 19:29:19 +0200 |
commit | cf9ac094e0f6d9649f050452c0df539281237e54 (patch) | |
tree | a4ffecdc2b856198c777ec8d951227af8466a53a /pkgs | |
parent | c27a9416e8ee04d708b11b48f8cf1a055c0cc079 (diff) | |
parent | 16b43f218d142de49fbd8fae77e6e2c057bfb9d6 (diff) |
Merge remote-tracking branch 'lass/master'derp
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/default.nix | 17 |
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); |