mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 10:14:09 +02:00
fix getting current triple
This commit is contained in:
parent
6dd4528f2c
commit
c2c3b43354
1 changed files with 2 additions and 2 deletions
|
|
@ -93,12 +93,12 @@
|
|||
'';
|
||||
|
||||
CARGO_BUILD_TARGET = target;
|
||||
} // (if (pkgs.config != target) then (crossArgs.${target} or {}) else {}));
|
||||
} // (if (pkgs.hostPlatform.config != target) then (crossArgs.${target} or {}) else {}));
|
||||
buildAny = target: if (nixpkgs.lib.strings.hasInfix "windows" target) then (buildWindows target) else (buildLinux target);
|
||||
in rec {
|
||||
# `nix build`
|
||||
packages = nixpkgs.lib.attrsets.genAttrs targets buildAny;
|
||||
defaultPackage = packages.${pkgs.config};
|
||||
defaultPackage = packages.${pkgs.hostPlatform.config};
|
||||
|
||||
# `nix run`
|
||||
apps.palantir = utils.lib.mkApp {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue