lass 4: add simpleScript
This commit is contained in:
parent
fb41fe76c6
commit
bf69b0c03f
20
lass/4lib/default.nix
Normal file
20
lass/4lib/default.nix
Normal file
@ -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}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user