tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gavin-bc: fix configureFlags
Anderson Torres
2 years ago
282d879c
f6fbb682
+3
-3
1 changed file
expand all
collapse all
unified
split
pkgs
tools
misc
gavin-bc
default.nix
+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");