afflib: fix build on darwin, remove libiconv (#446118)

authored by 7c6f434c and committed by GitHub 2a18bdb1 69c9d71c

+6 -6
+6 -6
pkgs/by-name/af/afflib/package.nix
··· 5 5 zlib, 6 6 curl, 7 7 expat, 8 + fuse, 8 9 fuse3, 9 10 openssl, 10 11 autoreconfHook, 11 12 python3, 12 - libiconv, 13 13 }: 14 14 15 - stdenv.mkDerivation rec { 15 + stdenv.mkDerivation (finalAttrs: { 16 16 version = "3.7.22"; 17 17 pname = "afflib"; 18 18 19 19 src = fetchFromGitHub { 20 20 owner = "sshock"; 21 21 repo = "AFFLIBv3"; 22 - tag = "v${version}"; 22 + tag = "v${finalAttrs.version}"; 23 23 sha256 = "sha256-pGInhJQBhFJhft/KfB3J3S9/BVp9D8TZ+uw2CUNVC+Q="; 24 24 }; 25 25 ··· 31 31 openssl 32 32 python3 33 33 ] 34 - ++ lib.optionals (with stdenv; isLinux || isDarwin) [ fuse3 ] 35 - ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]; 34 + ++ lib.optionals stdenv.hostPlatform.isLinux [ fuse3 ] 35 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ fuse ]; 36 36 37 37 meta = { 38 38 homepage = "http://afflib.sourceforge.net/"; ··· 42 42 maintainers = [ lib.maintainers.raskin ]; 43 43 downloadPage = "https://github.com/sshock/AFFLIBv3/tags"; 44 44 }; 45 - } 45 + })