-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
46 lines (43 loc) · 1.16 KB
/
flake.nix
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
{
description = "Pterodactyl Wings";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
flake-utils.url = "github:numtide/flake-utils";
gomod2nix = {
url = "github:nix-community/gomod2nix";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
};
outputs = { self, nixpkgs, flake-utils, gomod2nix }:
{
nixosModules = rec {
pterodactyl-wings = import ./module.nix;
default = pterodactyl-wings;
};
overlays.default = _final: prev: rec {
pterodactyl-wings = self.packages.${prev.stdenv.hostPlatform.system}.pterodactyl-wings;
};
hydraJobs = {
inherit (self)
packages;
};
} // flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
system = "${system}";
overlays = [ gomod2nix.overlays.default ];
};
pterodactyl-wings = pkgs.callPackage ./default.nix {};
in {
packages = {
default = pterodactyl-wings;
pterodactyl-wings = pterodactyl-wings;
};
devShells.default = pkgs.mkShell {
buildInputs = [ pkgs.gomod2nix ];
};
});
}