forked from mirrors/nixpkgs
ocamlPackages.janePackage: don't delete meta set in args
A bit of a pitfall of // is that it doesn't merge recursively which often leads to unintended deletion in meta sets: If meta is in args it is also present in the set right of the // operator which means the right value is used to replace the left value completely. This throws away anything extra we've set in the meta set in args. This is fixed by this comment, allowing the descriptions and broken = true; set in janestreet/old.nix to propagate to the output meta sets.
This commit is contained in:
parent
462d059909
commit
336ac16838
|
@ -14,6 +14,8 @@ buildDunePackage (args // {
|
||||||
sha256 = hash;
|
sha256 = hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
meta.license = lib.licenses.asl20;
|
meta = {
|
||||||
meta.homepage = "https://github.com/janestreet/${pname}";
|
license = lib.licenses.asl20;
|
||||||
|
homepage = "https://github.com/janestreet/${pname}";
|
||||||
|
} // args.meta;
|
||||||
})
|
})
|
||||||
|
|
|
@ -14,6 +14,8 @@ buildDunePackage (args // {
|
||||||
sha256 = hash;
|
sha256 = hash;
|
||||||
};
|
};
|
||||||
|
|
||||||
meta.license = lib.licenses.mit;
|
meta = {
|
||||||
meta.homepage = "https://github.com/janestreet/${pname}";
|
license = lib.licenses.mit;
|
||||||
|
homepage = "https://github.com/janestreet/${pname}";
|
||||||
|
} // args.meta;
|
||||||
})
|
})
|
||||||
|
|
|
@ -22,6 +22,8 @@ buildDunePackage (args // {
|
||||||
|
|
||||||
inherit doCheck;
|
inherit doCheck;
|
||||||
|
|
||||||
meta.license = lib.licenses.mit;
|
meta = {
|
||||||
meta.homepage = "https://github.com/janestreet/${pname}";
|
license = lib.licenses.mit;
|
||||||
|
homepage = "https://github.com/janestreet/${pname}";
|
||||||
|
} // args.meta;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue