summaryrefslogtreecommitdiffstats
path: root/lass/4lib/default.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-08-28 16:30:36 +0200
committerlassulus <lass@aidsballs.de>2015-08-28 16:30:36 +0200
commitbf69b0c03f1e380b127815c2263f1dac5c9d9165 (patch)
tree0bb2aac815b1a37f6c52de673d60ce174b069996 /lass/4lib/default.nix
parentfb41fe76c6fb0b460498228032f1fdbd7290ae46 (diff)
lass 4: add simpleScript
Diffstat (limited to 'lass/4lib/default.nix')
-rw-r--r--lass/4lib/default.nix20
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}
+ '';
+ };
+}