Skip to content

Commit

Permalink
try default apple-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod committed Jan 11, 2025
1 parent 9d773e9 commit 4f39b32
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
{ pimalaya ? import (fetchTarball "https://github.com/pimalaya/nix/archive/master.tar.gz")
, ...
} @args:
{
pimalaya ? import (fetchTarball "https://github.com/pimalaya/nix/archive/master.tar.gz"),
...
}@args:

pimalaya.mkDefault ({
src = ./.;
version = "1.0.0";
mkPackage = ({ lib, pkgs, rustPlatform, defaultFeatures, features }: pkgs.callPackage ./package.nix {
inherit lib rustPlatform;
apple-sdk = if pkgs.hostPlatform.isx86_64 then pkgs.apple-sdk_13 else pkgs.apple-sdk_14;
installShellCompletions = false;
installManPages = false;
buildNoDefaultFeatures = !defaultFeatures;
buildFeatures = lib.splitString "," features;
});
} // removeAttrs args [ "pimalaya" ])
pimalaya.mkDefault (
{
src = ./.;
version = "1.0.0";
mkPackage = (
{
lib,
pkgs,
rustPlatform,
defaultFeatures,
features,
}:
pkgs.callPackage ./package.nix {
inherit lib rustPlatform;
apple-sdk = pkgs.apple-sdk;
installShellCompletions = false;
installManPages = false;
buildNoDefaultFeatures = !defaultFeatures;
buildFeatures = lib.splitString "," features;
}
);
}
// removeAttrs args [ "pimalaya" ]
)

0 comments on commit 4f39b32

Please sign in to comment.