diff options
Diffstat (limited to 'pkgs/tools/misc/gavin-bc/default.nix')
-rw-r--r-- | pkgs/tools/misc/gavin-bc/default.nix | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/tools/misc/gavin-bc/default.nix b/pkgs/tools/misc/gavin-bc/default.nix index ade42a7d0d3a8..ad8364d41ce49 100644 --- a/pkgs/tools/misc/gavin-bc/default.nix +++ b/pkgs/tools/misc/gavin-bc/default.nix @@ -8,17 +8,17 @@ }: assert lib.elem historyType [ "editline" "readline" "internal" ]; -assert lib.elem predefinedBuildType [ "BSD" "GNU" "GDH" "DBG" ]; -stdenv.mkDerivation (self: { +assert lib.elem predefinedBuildType [ "BSD" "GNU" "GDH" "DBG" "" ]; +stdenv.mkDerivation (finalAttrs: { pname = "gavin-bc"; - version = "6.2.4"; + version = "6.5.0"; src = fetchFromGitea { domain = "git.gavinhoward.com"; owner = "gavin"; repo = "bc"; - rev = self.version; - hash = "sha256-KQheSyBbxh2ROOvwt/gqhJM+qWc+gDS/x4fD6QIYUWw="; + rev = finalAttrs.version; + hash = "sha256-V0L5OmpcI0Zu5JvESjuhp4wEs5Bu/CvjF6B5WllTEqo="; }; buildInputs = @@ -27,17 +27,20 @@ stdenv.mkDerivation (self: { configureFlags = [ "--disable-nls" - "--predefined-build-type=${historyType}" ] + ++ (lib.optional (predefinedBuildType != "") "--predefined-build-type=${predefinedBuildType}") ++ (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 = { homepage = "https://git.gavinhoward.com/gavin/bc"; description = "Gavin Howard's BC calculator implementation"; + changelog = "https://git.gavinhoward.com/gavin/bc/raw/tag/${finalAttrs.version}/NEWS.md"; license = lib.licenses.bsd2; maintainers = [ lib.maintainers.AndersonTorres ]; platforms = lib.platforms.unix; broken = stdenv.isDarwin; }; }) +# TODO: cover most of configure settings |