coqPackages.ssreflect: inherit mathcomp's source/meta attributes

This commit is contained in:
Jörg Thalheim
2018-11-06 15:00:45 +00:00
parent 993bd5df22
commit 5b813ebbc4
2 changed files with 15 additions and 39 deletions
@@ -18,8 +18,11 @@ let param =
in
stdenv.mkDerivation {
name = "coq${coq.coq-version}-mathcomp-${param.version}";
stdenv.mkDerivation rec {
name = "coq${coq.coq-version}-mathcomp-${version}";
# used in ssreflect
inherit (param) version;
src = fetchFromGitHub {
owner = "math-comp";
@@ -35,10 +38,11 @@ stdenv.mkDerivation {
buildFlags = stdenv.lib.optionalString withDoc "doc";
COQBIN = "${coq}/bin/";
preBuild = ''
patchShebangs etc/utils/ssrcoqdep || true
cd mathcomp
export COQBIN=${coq}/bin/
'';
installPhase = ''