mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Merge pull request #216417 from atorres1985-contrib/gavin-bc
gavin-bc: new package
This commit is contained in:
commit
a22eedee79
43
pkgs/tools/misc/gavin-bc/default.nix
Normal file
43
pkgs/tools/misc/gavin-bc/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitea
|
||||
, editline
|
||||
, readline
|
||||
, historyType ? "internal"
|
||||
, predefinedBuildType ? "BSD"
|
||||
}:
|
||||
|
||||
assert lib.elem historyType [ "editline" "readline" "internal" ];
|
||||
assert lib.elem predefinedBuildType [ "BSD" "GNU" "GDH" "DBG" ];
|
||||
stdenv.mkDerivation (self: {
|
||||
pname = "gavin-bc";
|
||||
version = "6.2.4";
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "git.gavinhoward.com";
|
||||
owner = "gavin";
|
||||
repo = "bc";
|
||||
rev = self.version;
|
||||
hash = "sha256-KQheSyBbxh2ROOvwt/gqhJM+qWc+gDS/x4fD6QIYUWw=";
|
||||
};
|
||||
|
||||
buildInputs =
|
||||
(lib.optional (historyType == "editline") editline)
|
||||
++ (lib.optional (historyType == "readline") readline);
|
||||
|
||||
configureFlags = [
|
||||
"--disable-nls"
|
||||
"--predefined-build-type=${historyType}"
|
||||
]
|
||||
++ (lib.optional (historyType == "editline") "--enable-editline")
|
||||
++ (lib.optional (historyType == "readline") "--enable-readline");
|
||||
|
||||
meta = {
|
||||
homepage = "https://git.gavinhoward.com/gavin/bc";
|
||||
description = "Gavin Howard's BC calculator implementation";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = [ lib.maintainers.AndersonTorres ];
|
||||
platforms = lib.platforms.unix;
|
||||
broken = stdenv.isDarwin;
|
||||
};
|
||||
})
|
@ -3668,6 +3668,8 @@ with pkgs;
|
||||
|
||||
bc = callPackage ../tools/misc/bc { };
|
||||
|
||||
gavin-bc = callPackage ../tools/misc/gavin-bc { };
|
||||
|
||||
bdf2psf = callPackage ../tools/misc/bdf2psf { };
|
||||
|
||||
bdf2sfd = callPackage ../tools/misc/bdf2sfd { };
|
||||
|
Loading…
Reference in New Issue
Block a user