From 7a6bbb41ac81e5c0664b0a9ee9da027270c248fb Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 21 Feb 2019 12:09:50 +0100 Subject: [PATCH] haskell-hledger: don't install data files that don't belong to this package Fixes https://github.com/NixOS/nixpkgs/issues/53936. --- pkgs/development/haskell-modules/configuration-common.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 426d23d6c7e..443fd4fc303 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