git.iko.soy/typeable/cabal2nix
on master help sign in
Fix git-annex build to install man pages and bash completion.
34b77b8Peter Simons
src/Cabal2Nix/PostProcess.hs+4−5
@@ -48,11 +48,10 @@ gitAnnexHook :: Derivation -> Derivation
48gitAnnexHook = set phaseOverrides gitAnnexOverrides . over (executableDepends . system) (Set.union buildInputs)
48gitAnnexHook = set phaseOverrides gitAnnexOverrides . over (executableDepends . system) (Set.union buildInputs)
49 where
49 where
50 gitAnnexOverrides = unlines
50 gitAnnexOverrides = unlines
51− [ "preConfigure = \"export HOME=$TEMPDIR\";"
51+ [ "preConfigure = \"export HOME=$TEMPDIR; patchShebangs .\";"
52− , "checkPhase = ''"
53− , " cp dist/build/git-annex/git-annex git-annex"
52+ , "postBuild = \"ln -sf dist/build/git-annex/git-annex git-annex\";"
53+ , "installPhase = \"make PREFIX=$out CABAL=./Setup install\";"
54− , " ./git-annex test"
54+ , "checkPhase = \"./git-annex test\";"
55− , "'';"
56 ]
55 ]
57 buildInputs = Set.fromList ["git","rsync","gnupg","curl","wget","lsof","openssh","which","bup","perl"]
56 buildInputs = Set.fromList ["git","rsync","gnupg","curl","wget","lsof","openssh","which","bup","perl"]
58
57