-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdefault.nix
More file actions
31 lines (28 loc) · 667 Bytes
/
default.nix
File metadata and controls
31 lines (28 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
pimalaya ? import (fetchTarball "https://github.com/pimalaya/nix/archive/master.tar.gz"),
...
}@args:
let
package = {
src = ./.;
version = "0.1.0";
mkPackage = (
{
lib,
pkgs,
rustPlatform,
defaultFeatures,
features,
}:
pkgs.callPackage ./package.nix {
inherit lib rustPlatform;
apple-sdk = pkgs.apple-sdk;
installShellCompletions = false;
installManPages = false;
withNoDefaultFeatures = !defaultFeatures;
withFeatures = lib.splitString "," features;
}
);
};
in
pimalaya.mkDefault (package // removeAttrs args [ "pimalaya" ])