Skip to content

Commit f8e6bf7

Browse files
Merge pull request #618 from NixOS/git-annex-post-process
FromCabal.PostProcess: remove gitAnnexHook
2 parents 173e8a5 + 6260a55 commit f8e6bf7

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

cabal2nix/src/Distribution/Nixpkgs/Haskell/FromCabal/Flags.hs

+5-6
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,17 @@ configureCabalFlags' (PackageIdentifier name version)
2424
| name == "diagrams-builder" = [enable "cairo", enable "svg", enable "ps", enable "rasterific"]
2525
| name == "fltkhs" = [enable "opengl"]
2626
| name == "folds" = [disable "test-hlint"]
27-
| name == "git-annex" = [ enable "assistant"
27+
| name == "git-annex" = [ -- default
28+
enable "assistant"
29+
, disable "debuglocks"
30+
-- custom
2831
, disable "benchmark"
32+
, enable "crypton"
2933
, enable "dbus"
30-
, disable "debuglocks"
3134
, enable "magicmime"
32-
, enable "networkbsd"
3335
, enable "pairing"
3436
, enable "production"
35-
, enable "s3"
3637
, enable "torrentparser"
37-
, enable "webapp"
38-
, enable "webdav"
3938
]
4039
| name == "haskeline" = [enable "terminfo"]
4140
| name == "haste-compiler" = [enable "portable"]

cabal2nix/src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs

-17
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ hooks =
110110
, ("gio", set (libraryDepends . pkgconfig . contains "system-glib = pkgs.glib") True)
111111
, ("git", set doCheck False) -- https://github.com/vincenthz/hit/issues/33
112112
, ("git-annex >= 6.20170925 && < 6.20171214", set doCheck False) -- some versions of git-annex require their test suite to be run inside of a git checkout
113-
, ("git-annex", gitAnnexHook)
114113
, ("github-backup", set (executableDepends . tool . contains (pkg "git")) True)
115114
, ("GLFW", over (libraryDepends . system) (Set.union (Set.fromList [bind "pkgs.xorg.libXext", bind "pkgs.xorg.libXfixes"])))
116115
, ("GlomeVec", set (libraryDepends . pkgconfig . contains (bind "self.llvmPackages.llvm")) True)
@@ -224,22 +223,6 @@ haddockHook = set doCheck False
224223
. over (dependencies . haskell) (Set.filter (\b -> view localName b /= "haddock-test"))
225224
. set (metaSection . broken) False
226225

227-
gitAnnexHook :: Derivation -> Derivation
228-
gitAnnexHook = set phaseOverrides gitAnnexOverrides
229-
. over (executableDepends . system) (Set.union buildInputs)
230-
where
231-
gitAnnexOverrides = unlines
232-
[ "preConfigure = \"export HOME=$TEMPDIR; patchShebangs .\";"
233-
, "postBuild = ''"
234-
, " ln -sf dist/build/git-annex/git-annex git-annex"
235-
, " ln -sf git-annex git-annex-shell"
236-
, "'';"
237-
, "installPhase = \"make PREFIX=$out BUILDER=: install install-completions\";"
238-
, "checkPhase = ''PATH+=\":$PWD\" git-annex test'';"
239-
, "enableSharedExecutables = false;"
240-
]
241-
buildInputs = pkgs ["git","rsync","gnupg","curl","wget","lsof","openssh","which","bup","perl"]
242-
243226
hfusePreConfigure :: String
244227
hfusePreConfigure = unlines
245228
[ "preConfigure = ''"

0 commit comments

Comments
 (0)