about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/coq-modules/pocklington/default.nix
blob: 1ee80e9a4b6e1a27ca36f4b3e2f4bbe44be8e247 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ lib, mkCoqDerivation, coq, version ? null }:

mkCoqDerivation {
  pname = "pocklington";
  owner = "coq-community";

  release."8.12.0".rev    = "v8.12.0";
  release."8.12.0".sha256 = "sha256-0xBrw9+4g14niYdNqp0nx00fPJoSSnaDSDEaIVpPfjs=";

  inherit version;
  defaultVersion = with lib.versions; lib.switch coq.coq-version [
    { case = range "8.7" "8.18"; out = "8.12.0"; }
  ] null;

  meta = with lib; {
    description = "Pocklington's criterion for primality in Coq";
    maintainers = with maintainers; [ siraben ];
    license = licenses.mit;
    platforms = platforms.unix;
  };
}