gavin-bc: 6.2.4 -> 6.5.0
This commit is contained in:
parent
47651eba67
commit
e956ce0a46
|
@ -8,17 +8,17 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert lib.elem historyType [ "editline" "readline" "internal" ];
|
assert lib.elem historyType [ "editline" "readline" "internal" ];
|
||||||
assert lib.elem predefinedBuildType [ "BSD" "GNU" "GDH" "DBG" ];
|
assert lib.elem predefinedBuildType [ "BSD" "GNU" "GDH" "DBG" "" ];
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "gavin-bc";
|
pname = "gavin-bc";
|
||||||
version = "6.2.4";
|
version = "6.5.0";
|
||||||
|
|
||||||
src = fetchFromGitea {
|
src = fetchFromGitea {
|
||||||
domain = "git.gavinhoward.com";
|
domain = "git.gavinhoward.com";
|
||||||
owner = "gavin";
|
owner = "gavin";
|
||||||
repo = "bc";
|
repo = "bc";
|
||||||
rev = finalAttrs.version;
|
rev = finalAttrs.version;
|
||||||
hash = "sha256-KQheSyBbxh2ROOvwt/gqhJM+qWc+gDS/x4fD6QIYUWw=";
|
hash = "sha256-V0L5OmpcI0Zu5JvESjuhp4wEs5Bu/CvjF6B5WllTEqo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
|
@ -27,10 +27,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--disable-nls"
|
"--disable-nls"
|
||||||
"--predefined-build-type=${predefinedBuildType}"
|
|
||||||
]
|
]
|
||||||
|
++ (lib.optional (predefinedBuildType != "") "--predefined-build-type=${predefinedBuildType}")
|
||||||
++ (lib.optional (historyType == "editline") "--enable-editline")
|
++ (lib.optional (historyType == "editline") "--enable-editline")
|
||||||
++ (lib.optional (historyType == "readline") "--enable-readline");
|
++ (lib.optional (historyType == "readline") "--enable-readline")
|
||||||
|
++ (lib.optional (historyType == "internal") "--enable-internal-history");
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://git.gavinhoward.com/gavin/bc";
|
homepage = "https://git.gavinhoward.com/gavin/bc";
|
||||||
|
@ -42,3 +43,4 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
broken = stdenv.isDarwin;
|
broken = stdenv.isDarwin;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
# TODO: cover most of configure settings
|
||||||
|
|
Loading…
Reference in a new issue