git.iko.soy/typeable/cabal2nix
on master help sign in
git-annex: improve the post-process hook to install the completion files
commitfe32a4cdb909cc0a25d37ec371453b1bb0d4f134 authorPeter Simons <simons@cryp.to> dateWed 8 May 2019, 15:21 (7 years ago) parentb2ea1c2
1 file changed+3−4
src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs+3−4
src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs+3−4
@@ -229,13 +229,12 @@ gitAnnexHook = set phaseOverrides gitAnnexOverrides
229229 where
230230 gitAnnexOverrides = unlines
231231 [ "preConfigure = \"export HOME=$TEMPDIR; patchShebangs .\";"
232− , "installPhase = \"make PREFIX=$out BUILDER=: install\";"
233− , "checkPhase = ''"
232+ , "postBuild = ''"
234233 , " ln -sf dist/build/git-annex/git-annex git-annex"
235234 , " ln -sf git-annex git-annex-shell"
236− , " export PATH+=\":$PWD\""
237− , " git-annex test"
238235 , "'';"
236+ , "installPhase = \"make PREFIX=$out BUILDER=: install install-completions\";"
237+ , "checkPhase = ''PATH+=\":$PWD\" git-annex test'';"
239238 , "enableSharedExecutables = false;"
240239 ]
241240 buildInputs = pkgs ["git","rsync","gnupg","curl","wget","lsof","openssh","which","bup","perl"]