summaryrefslogtreecommitdiffstats
path: root/lass/4lib/default.nix
blob: 21a083d1ad065eaa4c09f781b1f698457d2a20d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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}
      '';
    };
}