add flake + default.nix
This commit is contained in:
committed by
Kyle Isom
parent
9f33cdc0e4
commit
b1cb2532f6
27
default.nix
Normal file
27
default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
lib,
|
||||
installShellFiles,
|
||||
stdenv,
|
||||
...
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "ke";
|
||||
version = "1.3.1";
|
||||
|
||||
src = lib.cleanSource ./.;
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
cp ke $out/bin/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
installManPage ke.1
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user