From 6e3cb231e62e5d84e29ef3567e062048187827ac Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 1 Apr 2018 11:42:53 +0200 Subject: haskell-hledger: update post-install hooks for the new documentation scheme --- .../haskell-modules/configuration-common.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'pkgs/development/haskell-modules') diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 1bc1ffbaf131..7326941d0754 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -963,37 +963,37 @@ self: super: { hledger = overrideCabal super.hledger (drv: { postInstall = '' for i in $(seq 1 9); do - for j in $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.$i $data/share/${self.ghc.name}/*-${self.ghc.name}/*/.otherdocs/*.$i; do + for j in embeddedfiles/*.$i; do mkdir -p $out/share/man/man$i - cp $j $out/share/man/man$i/ + cp -v $j $out/share/man/man$i/ done done mkdir -p $out/share/info - cp $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.info $out/share/info/ + cp -v embeddedfiles/*.info* $out/share/info/ ''; }); hledger-ui = overrideCabal super.hledger-ui (drv: { postInstall = '' for i in $(seq 1 9); do - for j in $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.$i $data/share/${self.ghc.name}/*-${self.ghc.name}/*/.otherdocs/*.$i; do + for j in *.$i; do mkdir -p $out/share/man/man$i - cp $j $out/share/man/man$i/ + cp -v $j $out/share/man/man$i/ done done mkdir -p $out/share/info - cp $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.info $out/share/info/ + cp -v *.info* $out/share/info/ ''; }); hledger-web = overrideCabal super.hledger-web (drv: { postInstall = '' for i in $(seq 1 9); do - for j in $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.$i $data/share/${self.ghc.name}/*-${self.ghc.name}/*/.otherdocs/*.$i; do + for j in *.$i; do mkdir -p $out/share/man/man$i - cp $j $out/share/man/man$i/ + cp -v $j $out/share/man/man$i/ done done mkdir -p $out/share/info - cp $data/share/${self.ghc.name}/*-${self.ghc.name}/*/*.info $out/share/info/ + cp -v *.info* $out/share/info/ ''; }); -- cgit 1.4.1