gavin-bc: fix configureFlags

+3 -3
+3 -3
pkgs/tools/misc/gavin-bc/default.nix
··· 9 10 assert lib.elem historyType [ "editline" "readline" "internal" ]; 11 assert lib.elem predefinedBuildType [ "BSD" "GNU" "GDH" "DBG" ]; 12 - stdenv.mkDerivation (self: { 13 pname = "gavin-bc"; 14 version = "6.2.4"; 15 ··· 17 domain = "git.gavinhoward.com"; 18 owner = "gavin"; 19 repo = "bc"; 20 - rev = self.version; 21 hash = "sha256-KQheSyBbxh2ROOvwt/gqhJM+qWc+gDS/x4fD6QIYUWw="; 22 }; 23 ··· 27 28 configureFlags = [ 29 "--disable-nls" 30 - "--predefined-build-type=${historyType}" 31 ] 32 ++ (lib.optional (historyType == "editline") "--enable-editline") 33 ++ (lib.optional (historyType == "readline") "--enable-readline");
··· 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 ··· 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 ··· 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");