diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-11-06 15:00:45 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-11-06 15:00:45 +0000 |
commit | 5b813ebbc40a3da6560594276eda08af74ce31b0 (patch) | |
tree | 29c1bf41762cb1cd0dfcbafc8a5901a40491e12b /pkgs/development/coq-modules/mathcomp/default.nix | |
parent | 993bd5df2240ef9223dd0b969ccd5f5fc7495526 (diff) |
coqPackages.ssreflect: inherit mathcomp's source/meta attributes
Diffstat (limited to 'pkgs/development/coq-modules/mathcomp/default.nix')
-rw-r--r-- | pkgs/development/coq-modules/mathcomp/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/coq-modules/mathcomp/default.nix b/pkgs/development/coq-modules/mathcomp/default.nix index 0a6ba2ca08c84..1e5b6b7bf6668 100644 --- a/pkgs/development/coq-modules/mathcomp/default.nix +++ b/pkgs/development/coq-modules/mathcomp/default.nix @@ -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 = '' |