gavin-bc: 6.2.4 -> 6.5.0

+7 -5
+7 -5
pkgs/tools/misc/gavin-bc/default.nix
··· 8 }: 9 10 assert lib.elem historyType [ "editline" "readline" "internal" ]; 11 - assert lib.elem predefinedBuildType [ "BSD" "GNU" "GDH" "DBG" ]; 12 stdenv.mkDerivation (finalAttrs: { 13 pname = "gavin-bc"; 14 - version = "6.2.4"; 15 16 src = fetchFromGitea { 17 domain = "git.gavinhoward.com"; 18 owner = "gavin"; 19 repo = "bc"; 20 rev = finalAttrs.version; 21 - hash = "sha256-KQheSyBbxh2ROOvwt/gqhJM+qWc+gDS/x4fD6QIYUWw="; 22 }; 23 24 buildInputs = ··· 27 28 configureFlags = [ 29 "--disable-nls" 30 - "--predefined-build-type=${predefinedBuildType}" 31 ] 32 ++ (lib.optional (historyType == "editline") "--enable-editline") 33 - ++ (lib.optional (historyType == "readline") "--enable-readline"); 34 35 meta = { 36 homepage = "https://git.gavinhoward.com/gavin/bc"; ··· 42 broken = stdenv.isDarwin; 43 }; 44 })
··· 8 }: 9 10 assert lib.elem historyType [ "editline" "readline" "internal" ]; 11 + assert lib.elem predefinedBuildType [ "BSD" "GNU" "GDH" "DBG" "" ]; 12 stdenv.mkDerivation (finalAttrs: { 13 pname = "gavin-bc"; 14 + version = "6.5.0"; 15 16 src = fetchFromGitea { 17 domain = "git.gavinhoward.com"; 18 owner = "gavin"; 19 repo = "bc"; 20 rev = finalAttrs.version; 21 + hash = "sha256-V0L5OmpcI0Zu5JvESjuhp4wEs5Bu/CvjF6B5WllTEqo="; 22 }; 23 24 buildInputs = ··· 27 28 configureFlags = [ 29 "--disable-nls" 30 ] 31 + ++ (lib.optional (predefinedBuildType != "") "--predefined-build-type=${predefinedBuildType}") 32 ++ (lib.optional (historyType == "editline") "--enable-editline") 33 + ++ (lib.optional (historyType == "readline") "--enable-readline") 34 + ++ (lib.optional (historyType == "internal") "--enable-internal-history"); 35 36 meta = { 37 homepage = "https://git.gavinhoward.com/gavin/bc"; ··· 43 broken = stdenv.isDarwin; 44 }; 45 }) 46 + # TODO: cover most of configure settings