git.iko.soy/typeable/cabal2nix
on master help sign in
Fix git-annex build to install man pages and bash completion.
commit34b77b834bdc7795f96fcc5ffcded5629fe174ed authorPeter Simons <simons@cryp.to> dateFri 14 Aug 2015, 21:27 (11 years ago) parent1a76b48
1 file changed+4−5
src/Cabal2Nix/PostProcess.hs+4−5
src/Cabal2Nix/PostProcess.hs+4−5
@@ -48,11 +48,10 @@ gitAnnexHook :: Derivation -> Derivation
4848gitAnnexHook = set phaseOverrides gitAnnexOverrides . over (executableDepends . system) (Set.union buildInputs)
4949 where
5050 gitAnnexOverrides = unlines
51− [ "preConfigure = \"export HOME=$TEMPDIR\";"
52− , "checkPhase = ''"
53− , " cp dist/build/git-annex/git-annex git-annex"
54− , " ./git-annex test"
55− , "'';"
51+ [ "preConfigure = \"export HOME=$TEMPDIR; patchShebangs .\";"
52+ , "postBuild = \"ln -sf dist/build/git-annex/git-annex git-annex\";"
53+ , "installPhase = \"make PREFIX=$out CABAL=./Setup install\";"
54+ , "checkPhase = \"./git-annex test\";"
5655 ]
5756 buildInputs = Set.fromList ["git","rsync","gnupg","curl","wget","lsof","openssh","which","bup","perl"]
5857