arbit/default.nix

21 lines
412 B
Nix
Raw Normal View History

2023-08-29 18:10:03 +02:00
{ stdenv, scdoc, pipe-viewer, ...}:
stdenv.mkDerivation rec {
pname = "arbit";
version = "v1.2";
src = ./.;
buildInputs = [ scdoc ];
buildPhase = ''
scdoc < arbit.1.scd > arbit.1
'';
installPhase = ''
mkdir -p $out/bin $out/share/{man/man1,zsh/site-functions}
cp arbit $out/bin/
cp arbit.1 $out/share/man/man1/
cp zsh.completion $out/share/zsh/site-functions/_arbit
'';
}