haskellPackages.hledger*: rely on install(1) and installManPage
Makes the code a bit simpler and allows us to fall back on existing solutions.
This commit is contained in:
parent
7b74e743f9
commit
3582fd1e3c
|
@ -222,15 +222,15 @@ self: super: builtins.intersectAttrs super {
|
|||
# hledger it additionally has all the other man pages in embeddedfiles/
|
||||
# which we ignore.
|
||||
installHledgerManPages = overrideCabal (drv: {
|
||||
buildTools = drv.buildTools or [] ++ [
|
||||
pkgs.buildPackages.installShellFiles
|
||||
];
|
||||
postInstall = ''
|
||||
for i in $(seq 1 9); do
|
||||
for j in *.$i; do
|
||||
mkdir -p $out/share/man/man$i
|
||||
cp -v $j $out/share/man/man$i/
|
||||
done
|
||||
installManPage *.$i
|
||||
done
|
||||
mkdir -p $out/share/info
|
||||
cp -v *.info* $out/share/info/
|
||||
|
||||
install -v -Dm644 *.info* -t "$out/share/info/"
|
||||
'';
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue