add flake + default.nix

This commit is contained in:
Jeremy O'Brien
2025-11-25 01:18:12 -05:00
committed by Kyle Isom
parent 9f33cdc0e4
commit b1cb2532f6
3 changed files with 72 additions and 0 deletions

27
default.nix Normal file
View 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
'';
}