l 4: remove simpleScript
This commit is contained in:
parent
0580070f86
commit
b6491e3b43
@ -1,19 +1,9 @@
|
|||||||
{ lib, pkgs, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
simpleScript = name: content:
|
|
||||||
pkgs.stdenv.mkDerivation {
|
|
||||||
inherit name;
|
|
||||||
phases = [ "installPhase" ];
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
ln -s ${pkgs.writeScript name content} $out/bin/${name}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
getDefaultGateway = ip:
|
getDefaultGateway = ip:
|
||||||
concatStringsSep "." (take 3 (splitString "." ip) ++ ["1"]);
|
concatStringsSep "." (take 3 (splitString "." ip) ++ ["1"]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user