fossil: 2.16 -> 2.17

Add option to prefer internal/bundled sqlite3 which is what fossil seems to
prefer

+8 -5
+8 -5
pkgs/applications/version-management/fossil/default.nix
··· 6 , zlib 7 , openssl 8 , readline 9 , sqlite 10 , ed 11 , which ··· 15 16 stdenv.mkDerivation rec { 17 pname = "fossil"; 18 - version = "2.16"; 19 20 src = fetchurl { 21 url = "https://www.fossil-scm.org/home/tarball/version-${version}/fossil-${version}.tar.gz"; 22 - sha256 = "1z5ji25f2rqaxd1nj4fj84afl1v0m3mnbskgfwsjr3fr0h5p9aqy"; 23 }; 24 25 nativeBuildInputs = [ installShellFiles tcl tcllib ]; 26 27 - buildInputs = [ zlib openssl readline sqlite which ed ] 28 - ++ lib.optional stdenv.isDarwin libiconv; 29 30 enableParallelBuilding = true; 31 32 doCheck = stdenv.hostPlatform == stdenv.buildPlatform; 33 34 - configureFlags = [ "--disable-internal-sqlite" ] 35 ++ lib.optional withJson "--json"; 36 37 preBuild = ''
··· 6 , zlib 7 , openssl 8 , readline 9 + , withInternalSqlite ? true 10 , sqlite 11 , ed 12 , which ··· 16 17 stdenv.mkDerivation rec { 18 pname = "fossil"; 19 + version = "2.17"; 20 21 src = fetchurl { 22 url = "https://www.fossil-scm.org/home/tarball/version-${version}/fossil-${version}.tar.gz"; 23 + sha256 = "0539rsfvwv49qyrf36z5m0k74kvnn6y5xasm9vvi6lbphx8yxmi1"; 24 }; 25 26 nativeBuildInputs = [ installShellFiles tcl tcllib ]; 27 28 + buildInputs = [ zlib openssl readline which ed ] 29 + ++ lib.optional stdenv.isDarwin libiconv 30 + ++ lib.optional (!withInternalSqlite) sqlite; 31 32 enableParallelBuilding = true; 33 34 doCheck = stdenv.hostPlatform == stdenv.buildPlatform; 35 36 + configureFlags = 37 + lib.optional (!withInternalSqlite) "--disable-internal-sqlite" 38 ++ lib.optional withJson "--json"; 39 40 preBuild = ''