mirror of
https://github.com/pimalaya/himalaya.git
synced 2024-12-09 21:18:39 +03:00
This way you can do
```nix
himalaya.override {
buildFeatures = [ "notmuch" "oauth2" ];
}
```
Also this uses any unspecified arguments as if they were given from
`pkgs`, so no need to explicitly specify.
17 lines
597 B
Nix
17 lines
597 B
Nix
{ 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" ])
|