diff options
author | lassulus <lass@aidsballs.de> | 2015-08-28 16:30:36 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-08-28 16:30:36 +0200 |
commit | bf69b0c03f1e380b127815c2263f1dac5c9d9165 (patch) | |
tree | 0bb2aac815b1a37f6c52de673d60ce174b069996 /lass | |
parent | fb41fe76c6fb0b460498228032f1fdbd7290ae46 (diff) |
lass 4: add simpleScript
Diffstat (limited to 'lass')
-rw-r--r-- | lass/4lib/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lass/4lib/default.nix b/lass/4lib/default.nix new file mode 100644 index 000000000..21a083d1a --- /dev/null +++ b/lass/4lib/default.nix @@ -0,0 +1,20 @@ +{ lib, pkgs, ... }: + +let + krebs = import ../../krebs/4lib { inherit lib; }; +in + +with krebs; + +krebs // rec { + + simpleScript = name: content: + pkgs.stdenv.mkDerivation { + inherit name; + phases = [ "installPhase" ]; + installPhase = '' + mkdir -p $out/bin + ln -s ${pkgs.writeScript name content} $out/bin/${name} + ''; + }; +} |