2023-12-30 02:39:58 +01:00
|
|
|
{ stdenv
|
|
|
|
, scdoc
|
|
|
|
, pipe-viewer
|
|
|
|
, libnotify
|
|
|
|
, xclip
|
|
|
|
, mpv
|
|
|
|
, ...
|
|
|
|
}:
|
2023-08-29 18:10:03 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "arbit";
|
|
|
|
version = "v1.2";
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
buildInputs = [ scdoc ];
|
|
|
|
|
2023-12-30 02:39:58 +01:00
|
|
|
propogatedbuildinputs = [
|
2023-12-30 00:14:27 +01:00
|
|
|
pipe-viewer
|
|
|
|
libnotify
|
|
|
|
xclip
|
|
|
|
mpv
|
|
|
|
];
|
|
|
|
|
2023-08-29 18:10:03 +02:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|