diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-04-16 18:17:39 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-04-18 07:09:37 -0300 |
commit | 282d879c0341129e7bf30e29b516cff542004c03 (patch) | |
tree | 98481f907505b4ed2ee9cdbec0677f1e3581b2c0 /pkgs/tools/misc/gavin-bc | |
parent | f6fbb68239f5163f16c9d07d6bf7e206388a0859 (diff) | |
download | nixpkgs-282d879c0341129e7bf30e29b516cff542004c03.tar nixpkgs-282d879c0341129e7bf30e29b516cff542004c03.tar.gz nixpkgs-282d879c0341129e7bf30e29b516cff542004c03.tar.bz2 nixpkgs-282d879c0341129e7bf30e29b516cff542004c03.tar.lz nixpkgs-282d879c0341129e7bf30e29b516cff542004c03.tar.xz nixpkgs-282d879c0341129e7bf30e29b516cff542004c03.tar.zst nixpkgs-282d879c0341129e7bf30e29b516cff542004c03.zip |
gavin-bc: fix configureFlags
Diffstat (limited to 'pkgs/tools/misc/gavin-bc')
-rw-r--r-- | pkgs/tools/misc/gavin-bc/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/tools/misc/gavin-bc/default.nix b/pkgs/tools/misc/gavin-bc/default.nix index ade42a7d0d3..7f1a7882467 100644 --- a/pkgs/tools/misc/gavin-bc/default.nix +++ b/pkgs/tools/misc/gavin-bc/default.nix @@ -9,7 +9,7 @@ assert lib.elem historyType [ "editline" "readline" "internal" ]; assert lib.elem predefinedBuildType [ "BSD" "GNU" "GDH" "DBG" ]; -stdenv.mkDerivation (self: { +stdenv.mkDerivation (finalAttrs: { pname = "gavin-bc"; version = "6.2.4"; @@ -17,7 +17,7 @@ stdenv.mkDerivation (self: { domain = "git.gavinhoward.com"; owner = "gavin"; repo = "bc"; - rev = self.version; + rev = finalAttrs.version; hash = "sha256-KQheSyBbxh2ROOvwt/gqhJM+qWc+gDS/x4fD6QIYUWw="; }; @@ -27,7 +27,7 @@ stdenv.mkDerivation (self: { configureFlags = [ "--disable-nls" - "--predefined-build-type=${historyType}" + "--predefined-build-type=${predefinedBuildType}" ] ++ (lib.optional (historyType == "editline") "--enable-editline") ++ (lib.optional (historyType == "readline") "--enable-readline"); |