1{ stdenv, fetchFromGitHub, coq, bignums }: 2 3stdenv.mkDerivation rec { 4 5 name = "coq${coq.coq-version}-math-classes-${version}"; 6 version = "1.0.7"; 7 8 src = fetchFromGitHub { 9 owner = "math-classes"; 10 repo = "math-classes"; 11 rev = version; 12 sha256 = "0wgnczacvkb2pc3vjbni9bwjijfyd5jcdnyyjg8185hkf9zzabgi"; 13 }; 14 15 buildInputs = [ coq bignums ]; 16 enableParallelBuilding = true; 17 installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/"; 18 19 meta = with stdenv.lib; { 20 homepage = https://math-classes.github.io; 21 description = "A library of abstract interfaces for mathematical structures in Coq."; 22 maintainers = with maintainers; [ siddharthist jwiegley ]; 23 platforms = coq.meta.platforms; 24 }; 25 26 passthru = { 27 compatibleCoqVersions = v: stdenv.lib.versionAtLeast v "8.6"; 28 }; 29 30}