-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
69 lines (63 loc) · 1.33 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
inputs = {
nixpkgs = {
type = "github";
owner = "NixOS";
repo = "nixpkgs";
ref = "nixos-unstable";
};
Vencord-src = {
type = "github";
owner = "Vendicated";
repo = "vencord";
flake = false;
};
};
outputs = {
self,
nixpkgs,
...
}: let
# TODO: too lazy to support darwin
supportedSystems = ["x86_64-linux"];
perSystem = attrs:
nixpkgs.lib.genAttrs supportedSystems (system:
attrs (import nixpkgs {
inherit system;
# All the Discord packages are unfree binaries
config.allowUnfree = true;
}));
in {
packages =
perSystem (pkgs:
import ./pkgs {inherit self pkgs;});
overlays.default = final: prev: {
inherit
(self.packages.${final.system})
discord
discord-canary
discord-ptb
discord-development
vencord
;
};
formatter = perSystem (pkgs: pkgs.alejandra);
devShells = perSystem (pkgs: {
update = pkgs.mkShell {
packages = with pkgs; [
alejandra
bash
curl
git
gnugrep
jq
nix-prefetch-git
nix-prefetch-github
nix-prefetch-scripts
nodejs
prefetch-npm-deps
];
};
});
};
}