-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
43 lines (37 loc) · 1.09 KB
/
flake.nix
File metadata and controls
43 lines (37 loc) · 1.09 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
{
description = "nospoon — P2P VPN over HyperDHT";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
};
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
forAllSystems = f:
nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = nixpkgs.legacyPackages.${system};
});
in
{
packages = forAllSystems ({ pkgs }: let
nospoon = pkgs.callPackage ./package.nix { };
in {
default = nospoon;
nospoon = nospoon;
});
devShells = nixpkgs.lib.genAttrs
[ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ]
(system: {
android = import ./android/shell.nix {
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
config.android_sdk.accept_license = true;
};
};
});
nixosModules = {
nospoon = import ./module.nix { inherit self; };
default = self.nixosModules.nospoon;
};
};
}