build: add pandoc to nix derivation
This commit is contained in:
parent
df49e1eb57
commit
beb7f13932
1 changed files with 10 additions and 1 deletions
11
flake.nix
11
flake.nix
|
@ -33,6 +33,7 @@
|
|||
buildInputs = [
|
||||
rust
|
||||
pkgs.libnotify
|
||||
pkgs.pandoc
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
|
@ -54,7 +55,15 @@
|
|||
patchelf $out/bin/hinoirisetr --add-rpath ${pkgs.libnotify}/lib
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ ];
|
||||
postBuild = ''
|
||||
pandoc manpages/hinoirisetr.1.md -s -t man -o $out/share/man/man1/hinoirisetr.1
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
mkdir -p $out/share/man/man1
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgs.pandoc ];
|
||||
buildInputs = [ pkgs.libnotify ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue