···
# The Hackage tarball is purposefully broken, because it's not intended to be, like, useful.
# https://git-annex.branchable.com/bugs/bash_completion_file_is_missing_in_the_6.20160527_tarball_on_hackage/
466
-
git-annex = overrideCabal (drv: {
467
-
src = pkgs.fetchgit {
468
-
name = "git-annex-${super.git-annex.version}-src";
469
-
url = "git://git-annex.branchable.com/";
470
-
rev = "refs/tags/" + super.git-annex.version;
471
-
sha256 = "08k0qlx97j0c7vx07nwhzwxb2rxcnzwzlg2x3j01cx033vwch8hq";
472
-
# delete android and Android directories which cause issues on
473
-
# darwin (case insensitive directory). Since we don't need them
474
-
# during the build process, we can delete it to prevent a hash
475
-
# mismatch on darwin.
477
-
rm -r $out/doc/?ndroid*
466
+
git-annex = lib.pipe super.git-annex (
468
+
(overrideCabal (drv: {
469
+
src = pkgs.fetchgit {
470
+
name = "git-annex-${super.git-annex.version}-src";
471
+
url = "git://git-annex.branchable.com/";
472
+
rev = "refs/tags/" + super.git-annex.version;
473
+
sha256 = "18n6ah4d5i8qhx1s95zsb8bg786v0nv9hcjyxggrk88ya77maxha";
474
+
# delete android and Android directories which cause issues on
475
+
# darwin (case insensitive directory). Since we don't need them
476
+
# during the build process, we can delete it to prevent a hash
477
+
# mismatch on darwin.
479
+
rm -r $out/doc/?ndroid*
481
-
patches = drv.patches or [ ] ++ [
482
-
# Prevent .desktop files from being installed to $out/usr/share.
483
-
# TODO(@sternenseemann): submit upstreamable patch resolving this
484
-
# (this should be possible by also taking PREFIX into account).
485
-
./patches/git-annex-no-usr-prefix.patch
483
+
patches = drv.patches or [ ] ++ [
484
+
# Prevent .desktop files from being installed to $out/usr/share.
485
+
# TODO(@sternenseemann): submit upstreamable patch resolving this
486
+
# (this should be possible by also taking PREFIX into account).
487
+
./patches/git-annex-no-usr-prefix.patch
489
-
substituteInPlace Makefile \
490
-
--replace-fail 'InstallDesktopFile $(PREFIX)/bin/git-annex' \
491
-
'InstallDesktopFile git-annex'
493
-
}) super.git-annex;
491
+
substituteInPlace Makefile \
492
+
--replace-fail 'InstallDesktopFile $(PREFIX)/bin/git-annex' \
493
+
'InstallDesktopFile git-annex'
497
+
++ lib.optionals (lib.versionOlder self.ghc.version "9.10") [
498
+
(disableCabalFlag "OsPath")
499
+
(addBuildDepends [ self.filepath-bytestring ])
# Too strict bounds on servant
# Pending a hackage revision: https://github.com/berberman/arch-web/commit/5d08afee5b25e644f9e2e2b95380a5d4f4aa81ea#commitcomment-89230555