Derivation in seperate file
This commit is contained in:
parent
c87cb405d4
commit
1bd76ea8e1
3 changed files with 33 additions and 28 deletions
28
default.nix
Normal file
28
default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ pkgs
|
||||
, scdoc
|
||||
, xclip
|
||||
, stdenvNoCC
|
||||
, ...
|
||||
}:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "irs";
|
||||
version = "0.3";
|
||||
src = ./src;
|
||||
nativeBuildInputs = with pkgs; [
|
||||
scdoc
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
for page in $(find manpages -type f); do
|
||||
scdoc < $page > $(basename $page .scd)
|
||||
done
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{share/man/man1,bin,share/zsh/site-functions}
|
||||
cp bin/* $out/bin/
|
||||
cp completions/* $out/share/zsh/site-functions/
|
||||
cp *.1 $out/share/man/man1/
|
||||
'';
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue