diff options
author | tv <tv@krebsco.de> | 2016-02-07 05:32:03 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-07 06:24:04 +0100 |
commit | 02ad327081f2315b9ab15733319b167f64180a0d (patch) | |
tree | 3e1dbf7a084223c8ee3f5a985cdc7b826df6ce67 /krebs/5pkgs | |
parent | 949f466cf78ba2e76002012715172e5d5d394006 (diff) |
krebs.backup writeDash* -> pkgs
Diffstat (limited to 'krebs/5pkgs')
-rw-r--r-- | krebs/5pkgs/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/krebs/5pkgs/default.nix b/krebs/5pkgs/default.nix index c4b1dafe4..a0ccdcf49 100644 --- a/krebs/5pkgs/default.nix +++ b/krebs/5pkgs/default.nix @@ -61,6 +61,21 @@ subdirs // rec { strip --strip-unneeded "$exe" ''; + writeDash = name: text: pkgs.writeScript name '' + #! ${pkgs.dash}/bin/dash + ${text} + ''; + + writeDashBin = name: text: pkgs.writeTextFile { + executable = true; + destination = "/bin/${name}"; + name = name; + text = '' + #! ${pkgs.dash}/bin/dash + ${text} + ''; + }; + writeNixFromCabal = name: path: pkgs.runCommand name {} '' ${pkgs.cabal2nix}/bin/cabal2nix ${path} > $out ''; |