diff --git a/pkgs/development/coq-modules/bbv/default.nix b/pkgs/development/coq-modules/bbv/default.nix new file mode 100644 index 000000000000..340f32b830c4 --- /dev/null +++ b/pkgs/development/coq-modules/bbv/default.nix @@ -0,0 +1,20 @@ +{ lib, mkCoqDerivation, coq, version ? null }: + +mkCoqDerivation { + pname = "bbv"; + owner = "mit-plv"; + inherit version; + defaultVersion = let inherit (lib.versions) range; in + lib.switch coq.coq-version [ + { case = range "8.16" "8.19"; out = "1.5"; } + ] null; + release = { + "1.5".sha256 = "sha256-8/VPsfhNpuYpLmLC/hWszDhgvS6n8m7BRxUlea8PSUw="; + }; + releaseRev = v: "v${v}"; + + meta = { + description = "An implementation of bitvectors in Coq."; + license = lib.licenses.mit; + }; +} diff --git a/pkgs/top-level/coq-packages.nix b/pkgs/top-level/coq-packages.nix index 418a7b6f308a..ecdbe8bd6eff 100644 --- a/pkgs/top-level/coq-packages.nix +++ b/pkgs/top-level/coq-packages.nix @@ -22,6 +22,7 @@ let async-test = callPackage ../development/coq-modules/async-test {}; atbr = callPackage ../development/coq-modules/atbr {}; autosubst = callPackage ../development/coq-modules/autosubst {}; + bbv = callPackage ../development/coq-modules/bbv {}; bignums = if lib.versionAtLeast coq.coq-version "8.6" then callPackage ../development/coq-modules/bignums {} else null;