-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathflake.nix
More file actions
57 lines (51 loc) · 1.37 KB
/
Copy pathflake.nix
File metadata and controls
57 lines (51 loc) · 1.37 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
55
56
57
{
description = "Flake for watgbridge";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
nix-filter.url = "github:numtide/nix-filter";
};
outputs = {
self,
nixpkgs,
flake-utils,
nix-filter,
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {
inherit system;
};
in
with pkgs; rec {
devShells.default = mkShell {
name = "watgbridge-dev";
nativeBuildInputs = [
go
gopls
delve
libwebp
sqlite
];
hardeningDisable = ["fortify"];
};
apps.default = {
type = "app";
program = "${packages.default}/bin/watgbridge";
};
packages = rec {
watgbridge = pkgs.callPackage ./nix/pkgs/watgbridge-dev.nix {inherit nix-filter;};
default = watgbridge;
};
overlay = final: prev: {
watgbridge = pkgs.callPackage ./nix/pkgs/watgbridge-dev.nix {inherit nix-filter;};
};
}
);
nixConfig = {
extra-substituters = ["https://watgbridge.cachix.org"];
extra-trusted-public-keys = [
"watgbridge.cachix.org-1:KSfgmbSBvXQTpUnoCj21vST7zgwpy3SbNfk0/nesR1Y="
];
};
}