diff --git a/default.nix b/default.nix index f8add8b6..ab1e81a0 100644 --- a/default.nix +++ b/default.nix @@ -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" ] +)