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:
committed by
Vincent Laporte
parent
76084a6a33
commit
90db71098f
@@ -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
|
||||
));
|
||||
};
|
||||
}
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user