mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-13 19:24:50 +03:00
Enable splicing for cross-compilation.
This commit is contained in:
parent
7821a7549f
commit
ef6efdb2d5
1 changed files with 24 additions and 6 deletions
|
@ -510,9 +510,27 @@ let
|
||||||
sha256 = "1g45f71mk4gyca550177qf70v5cvavlsalmg7x8bi59j6z6f0mgz";
|
sha256 = "1g45f71mk4gyca550177qf70v5cvavlsalmg7x8bi59j6z6f0mgz";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in self.lib.makeExtensible (rosSelf: self.lib.composeManyExtensions [
|
|
||||||
base
|
otherSplices = {
|
||||||
(import (./. + "/${distro}/generated.nix"))
|
selfBuildBuild = self.pkgsBuildBuild.rosPackages.${distro};
|
||||||
overrides
|
selfBuildHost = self.pkgsBuildHost.rosPackages.${distro};
|
||||||
(import (./. + "/${distro}/overrides.nix") self)
|
selfBuildTarget = self.pkgsBuildTarget.rosPackages.${distro};
|
||||||
] rosSelf {})
|
selfHostHost = self.pkgsHostHost.rosPackages.${distro};
|
||||||
|
selfTargetTarget = self.pkgsTargetTarget.rosPackages.${distro} or {};
|
||||||
|
};
|
||||||
|
|
||||||
|
keep = rosSelf: {
|
||||||
|
inherit (rosSelf) lib buildRosPackage;
|
||||||
|
};
|
||||||
|
in self.lib.makeScopeWithSplicing
|
||||||
|
self.splicePackages
|
||||||
|
self.newScope
|
||||||
|
otherSplices
|
||||||
|
keep
|
||||||
|
(_: {})
|
||||||
|
(rosSelf: self.lib.composeManyExtensions [
|
||||||
|
base
|
||||||
|
(import (./. + "/${distro}/generated.nix"))
|
||||||
|
overrides
|
||||||
|
(import (./. + "/${distro}/overrides.nix") self)
|
||||||
|
] rosSelf {})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue