Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
54 lines (54 loc) · 1.48 KB
/
Copy pathflake.nix
File metadata and controls
54 lines (54 loc) · 1.48 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
description = "Pinned LDK Node bindings build and release tools";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/8edc0c72e3a38faf5434e40d1f19431125fe4b30";
rust-overlay = {
url = "github:oxalica/rust-overlay/404b7a5537f0adc6e5c558a1b94612e683dec504";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
rust-overlay,
}:
let
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
eachSystem = nixpkgs.lib.genAttrs systems;
environments = eachSystem (
system:
import ./nix/environment.nix {
pkgs = import nixpkgs {
inherit system;
overlays = [ rust-overlay.overlays.default ];
config.android_sdk.accept_license = true;
config.allowUnfree = true;
};
inherit self;
}
);
in
{
lib.mavenPublication =
{
system,
source,
platform,
}:
environments.${system}.mavenPublication { inherit source platform; };
packages = eachSystem (system: environments.${system}.packages);
devShells = eachSystem (system: environments.${system}.shells);
apps = eachSystem (system: {
release = {
type = "app";
program = "${self.packages.${system}.release}/bin/release";
};
});
formatter = eachSystem (system: (import nixpkgs { inherit system; }).nixfmt);
};
}