Skip to content

Commit 223f611

Browse files
felipeqq2peterhoeg
authored andcommitted
isync: use finalAttrs pattern
1 parent 5134436 commit 223f611

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkgs/tools/networking/isync/default.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
, withCyrusSaslXoauth2 ? false, cyrus-sasl-xoauth2, makeWrapper
77
}:
88

9-
stdenv.mkDerivation rec {
9+
stdenv.mkDerivation (finalAttrs: {
1010
pname = "isync";
1111
version = "1.5.0";
1212

1313
src = fetchurl {
14-
url = "mirror://sourceforge/isync/${pname}-${version}.tar.gz";
15-
sha256 = "oMgeEJOHvyedoWFFMQM5nneUav7PXFH5QTxedzVX940=";
14+
url = "mirror://sourceforge/isync/isync-${finalAttrs.version}.tar.gz";
15+
hash = "sha256-oMgeEJOHvyedoWFFMQM5nneUav7PXFH5QTxedzVX940=";
1616
};
1717

18-
1918
# Fixes "Fatal: buffer too small" error
19+
# see https://sourceforge.net/p/isync/mailman/isync-devel/thread/87fsevvebj.fsf%40steelpick.2x.cz/
2020
env.NIX_CFLAGS_COMPILE = "-DQPRINTF_BUFF=4000";
2121

2222
nativeBuildInputs = [ pkg-config perl ]
@@ -44,4 +44,4 @@ stdenv.mkDerivation rec {
4444
maintainers = with maintainers; [ primeos ];
4545
mainProgram = "mbsync";
4646
};
47-
}
47+
})

0 commit comments

Comments
 (0)