Mathieu Othacehe skribis: > * gnu/packages/cmake.scm (cmake-minimal-cross): New package. > * guix/build-system/cmake.scm (default-cmake): Add new target argument and use > it to select cmake-minimal or cmake-minimal-cross. > (lower): Pass target to default-cmake. > --- > gnu/packages/cmake.scm | 8 ++++++++ > guix/build-system/cmake.scm | 9 ++++++--- > 2 files changed, 14 insertions(+), 3 deletions(-) > > diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm > index 1d8d829ec5..9bf0273f00 100644 > --- a/gnu/packages/cmake.scm > +++ b/gnu/packages/cmake.scm > @@ -207,6 +207,14 @@ and workspaces that can be used in the compiler environment of your choice.") > (outputs '("out" "doc")) > (properties (alist-delete 'hidden? (package-properties cmake-minimal))))) > > +(define-public cmake-minimal-cross > + (package > + (inherit cmake-minimal) > + (name "cmake-minimal-cross") > + (native-search-paths '()) > + (search-paths > + (package-native-search-paths cmake-minimal)))) It seems to be enough to just add ‘search-paths’ to ‘cmake’: