about summary refs log tree commit diff
path: root/pkgs/development/coq-modules/mathcomp/default.nix
blob: 189b12206400767b40c9a25fba6a0cbebfa5b9e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ callPackage, coq, fetchurl }:

let src = 
  if coq.coq-version == "8.4" then

    fetchurl {
      url = http://ssr.msr-inria.inria.fr/FTP/mathcomp-1.6.tar.gz;
      sha256 = "0adr556032r1jkvphbpfvrrv041qk0yqb7a1xnbam52ji0mdl2w8";
    }

  else if coq.coq-version == "8.5" then

    fetchurl {
      url = http://ssr.msr-inria.inria.fr/FTP/mathcomp-1.6.tar.gz;
      sha256 = "0adr556032r1jkvphbpfvrrv041qk0yqb7a1xnbam52ji0mdl2w8";
    }

  else throw "No mathcomp package for Coq version ${coq.coq-version}";

in

callPackage ./generic.nix {
  inherit src;
}