about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-common.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2019-02-21 12:09:50 +0100
committerPeter Simons <simons@cryp.to>2019-02-21 12:12:18 +0100
commit7a6bbb41ac81e5c0664b0a9ee9da027270c248fb (patch)
treef5b994a9cc6b8cdfced6e015db30531ac6fb3c3d /pkgs/development/haskell-modules/configuration-common.nix
parent1d6532d9765b8ba65658e6e6bf4d86b1e4464f8f (diff)
downloadnixlib-7a6bbb41ac81e5c0664b0a9ee9da027270c248fb.tar
nixlib-7a6bbb41ac81e5c0664b0a9ee9da027270c248fb.tar.gz
nixlib-7a6bbb41ac81e5c0664b0a9ee9da027270c248fb.tar.bz2
nixlib-7a6bbb41ac81e5c0664b0a9ee9da027270c248fb.tar.lz
nixlib-7a6bbb41ac81e5c0664b0a9ee9da027270c248fb.tar.xz
nixlib-7a6bbb41ac81e5c0664b0a9ee9da027270c248fb.tar.zst
nixlib-7a6bbb41ac81e5c0664b0a9ee9da027270c248fb.zip
haskell-hledger: don't install data files that don't belong to this package
Fixes https://github.com/NixOS/nixpkgs/issues/53936.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 426d23d6c7e1..443fd4fc303c 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -964,6 +964,9 @@ self: super: {
   # should be moved into the cabal2nix generator.
   hledger = overrideCabal super.hledger (drv: {
     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 j in embeddedfiles/*.$i; do
           mkdir -p $out/share/man/man$i