mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
coq: Fix bug when supplying release src.
Because of Nix precedence rules, the previous version of `mkCoqDerivation` required that the supplied `src` parameter to a package's release were a function that returned the source. If an actual source was provided, a confusing error message was thrown. This commit fixes this issue.
This commit is contained in:
parent
76084a6a33
commit
90db71098f
1 changed files with 9 additions and 8 deletions
|
@ -148,14 +148,15 @@ switch arg [
|
|||
in
|
||||
{
|
||||
version = rv.version or v;
|
||||
src = rv.src or fetcher (
|
||||
location
|
||||
// {
|
||||
rev = releaseRev v;
|
||||
artifact = releaseArtifact v;
|
||||
}
|
||||
// rv
|
||||
);
|
||||
src =
|
||||
rv.src or (fetcher (
|
||||
location
|
||||
// {
|
||||
rev = releaseRev v;
|
||||
artifact = releaseArtifact v;
|
||||
}
|
||||
// rv
|
||||
));
|
||||
};
|
||||
}
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue