tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gavin-bc: 6.2.4 -> 6.5.0
Anderson Torres
2 years ago
e956ce0a
47651eba
+7
-5
1 changed file
expand all
collapse all
unified
split
pkgs
tools
misc
gavin-bc
default.nix
+7
-5
pkgs/tools/misc/gavin-bc/default.nix
···
8
8
}:
9
9
10
10
assert lib.elem historyType [ "editline" "readline" "internal" ];
11
11
-
assert lib.elem predefinedBuildType [ "BSD" "GNU" "GDH" "DBG" ];
11
11
+
assert lib.elem predefinedBuildType [ "BSD" "GNU" "GDH" "DBG" "" ];
12
12
stdenv.mkDerivation (finalAttrs: {
13
13
pname = "gavin-bc";
14
14
-
version = "6.2.4";
14
14
+
version = "6.5.0";
15
15
16
16
src = fetchFromGitea {
17
17
domain = "git.gavinhoward.com";
18
18
owner = "gavin";
19
19
repo = "bc";
20
20
rev = finalAttrs.version;
21
21
-
hash = "sha256-KQheSyBbxh2ROOvwt/gqhJM+qWc+gDS/x4fD6QIYUWw=";
21
21
+
hash = "sha256-V0L5OmpcI0Zu5JvESjuhp4wEs5Bu/CvjF6B5WllTEqo=";
22
22
};
23
23
24
24
buildInputs =
···
27
27
28
28
configureFlags = [
29
29
"--disable-nls"
30
30
-
"--predefined-build-type=${predefinedBuildType}"
31
30
]
31
31
+
++ (lib.optional (predefinedBuildType != "") "--predefined-build-type=${predefinedBuildType}")
32
32
++ (lib.optional (historyType == "editline") "--enable-editline")
33
33
-
++ (lib.optional (historyType == "readline") "--enable-readline");
33
33
+
++ (lib.optional (historyType == "readline") "--enable-readline")
34
34
+
++ (lib.optional (historyType == "internal") "--enable-internal-history");
34
35
35
36
meta = {
36
37
homepage = "https://git.gavinhoward.com/gavin/bc";
···
42
43
broken = stdenv.isDarwin;
43
44
};
44
45
})
46
46
+
# TODO: cover most of configure settings