mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 10:14:09 +02:00
update cross-naersk
This commit is contained in:
parent
969a417951
commit
bea2c23482
2 changed files with 8 additions and 10 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -10,11 +10,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1686501881,
|
||||
"narHash": "sha256-qFxW9cuCfvo7Kcc7mSt53wkP1ti4Y5PTXJKLARPIWm8=",
|
||||
"lastModified": 1687811683,
|
||||
"narHash": "sha256-j0+0y2CBlwrbVkVEZajjAy9gdzHRNCq8hQTRe+QXTAQ=",
|
||||
"owner": "icewind1991",
|
||||
"repo": "cross-naersk",
|
||||
"rev": "95a73c480942aa9910fab37c29e3412bd915252e",
|
||||
"rev": "5e987fcf0521602914773016b173403d0fa873f9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
12
flake.nix
12
flake.nix
|
|
@ -39,9 +39,8 @@
|
|||
|
||||
releaseTargets = lib.lists.remove hostTarget targets;
|
||||
|
||||
execSufficForTarget = target: if lib.strings.hasInfix "windows" target then ".exe" else "";
|
||||
artifactForTarget = target: "palantir${execSufficForTarget target}";
|
||||
assetNameForTarget = target: "palantir-${builtins.replaceStrings ["-unknown" "-gnu" "-musl" "abihf" "-pc"] ["" "" "" "" ""] target}${execSufficForTarget target}";
|
||||
artifactForTarget = target: "palantir${cross-naersk'.execSufficForTarget target}";
|
||||
assetNameForTarget = target: "palantir-${builtins.replaceStrings ["-unknown" "-gnu" "-musl" "abihf" "-pc"] ["" "" "" "" ""] target}${cross-naersk'.execSufficForTarget target}";
|
||||
|
||||
cross-naersk' = pkgs.callPackage cross-naersk {inherit naersk;};
|
||||
|
||||
|
|
@ -59,8 +58,8 @@
|
|||
|
||||
postInstall = addUdev;
|
||||
};
|
||||
buildTarget = target: (cross-naersk' target).buildPackage nearskOpt;
|
||||
hostNaersk = (cross-naersk' hostTarget);
|
||||
buildTarget = target: (cross-naersk'.buildPackage target) nearskOpt;
|
||||
hostNaersk = cross-naersk'.hostNaersk;
|
||||
in rec {
|
||||
# `nix build`
|
||||
packages = nixpkgs.lib.attrsets.genAttrs targets buildTarget // rec {
|
||||
|
|
@ -89,9 +88,8 @@
|
|||
};
|
||||
|
||||
# `nix develop`
|
||||
devShells.default = pkgs.mkShell {
|
||||
devShells.default = cross-naersk'.mkShell targets {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
pkgs.rust-bin.stable.latest.default
|
||||
bacon
|
||||
];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue