mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
Merge pull request #327817 from rhelmot/freebsd-out-of-tree
freebsd.mkDerivation: do not crash on packages not using FreeBSD src
This commit is contained in:
commit
5e826c3d2d
@ -22,6 +22,9 @@ let
|
|||||||
fetchOptions = (lib.importJSON ./versions.json).${branch};
|
fetchOptions = (lib.importJSON ./versions.json).${branch};
|
||||||
in
|
in
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
|
# this derivation is tricky; it is not an in-tree FreeBSD build but it is meant to be built
|
||||||
|
# at the same time as the in-tree FreeBSD code, so it expects the same environment. Therefore,
|
||||||
|
# it is appropriate to use the freebsd mkDerivation.
|
||||||
pname = "drm-kmod";
|
pname = "drm-kmod";
|
||||||
version = branch;
|
version = branch;
|
||||||
|
|
||||||
|
@ -117,7 +117,9 @@ lib.makeOverridable (
|
|||||||
// {
|
// {
|
||||||
patches =
|
patches =
|
||||||
(lib.optionals (attrs.autoPickPatches or true) (
|
(lib.optionals (attrs.autoPickPatches or true) (
|
||||||
freebsd-lib.filterPatches patches (attrs.extraPaths or [ ] ++ [ attrs.path ])
|
freebsd-lib.filterPatches patches (
|
||||||
|
attrs.extraPaths or [ ] ++ (lib.optional (attrs ? path) attrs.path)
|
||||||
|
)
|
||||||
))
|
))
|
||||||
++ attrs.patches or [ ];
|
++ attrs.patches or [ ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user