haskell-hledger: don't install data files that don't belong to this package
Fixes https://github.com/NixOS/nixpkgs/issues/53936.
This commit is contained in:
parent
1d6532d976
commit
7a6bbb41ac
@ -964,6 +964,9 @@ self: super: {
|
|||||||
# should be moved into the cabal2nix generator.
|
# should be moved into the cabal2nix generator.
|
||||||
hledger = overrideCabal super.hledger (drv: {
|
hledger = overrideCabal super.hledger (drv: {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
# Don't install files that don't belong into this package to avoid
|
||||||
|
# conflicts when hledger and hledger-ui end up in the same profile.
|
||||||
|
rm embeddedfiles/hledger-{api,ui,web}.*
|
||||||
for i in $(seq 1 9); do
|
for i in $(seq 1 9); do
|
||||||
for j in embeddedfiles/*.$i; do
|
for j in embeddedfiles/*.$i; do
|
||||||
mkdir -p $out/share/man/man$i
|
mkdir -p $out/share/man/man$i
|
||||||
|
Loading…
x
Reference in New Issue
Block a user