-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
35 lines (32 loc) · 868 Bytes
/
default.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
{ lib
, fetchFromGitHub
, pkgs ? (
let
inherit (builtins) fetchTree fromJSON readFile;
inherit ((fromJSON (readFile ./flake.lock)).nodes) nixpkgs gomod2nix;
in
import (fetchTree nixpkgs.locked) {
overlays = [
(import "${fetchTree gomod2nix.locked}/overlay.nix")
];
}
)
, buildGoApplication ? pkgs.buildGoApplication
, pwd ? ./.
, modules ? ./gomod2nix.toml
, version ? srcInclude.version
, patches ? [ ]
, srcInclude ? pkgs.callPackage ./source.nix { inherit patches; }
}:
buildGoApplication rec {
inherit pwd modules version;
name = "pterodactyl-wings";
src = srcInclude;
meta = with lib; {
description = "Pterodactyl Wings";
homepage = "https://github.com/pterodactyl/wings";
license = licenses.mit;
maintainers = with maintainers; [ shortcord ];
platforms = [ "x86_64-linux" ];
};
}