-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
36 lines (30 loc) · 1.03 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
{
description =
"An overlay providing the latest version(s) of the Discord desktop app, checked every 30 minutes";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }:
let
pkgs = import nixpkgs {
config.allowUnfree = true;
overlays = [ self.overlays.default ];
system = "x86_64-linux";
};
mkApp = drv: exePath: {
type = "app";
program = "${drv}${exePath}";
};
in {
packages.x86_64-linux = {
inherit (pkgs) discord discord-ptb discord-canary;
};
apps.x86_64-linux = {
discord = mkApp pkgs.discord "/bin/discord";
discord-ptb = mkApp pkgs.discord-ptb "/bin/discordptb";
discord-canary = mkApp pkgs.discord-canary "/bin/discordcanary";
};
packages.x86_64-linux.default = self.packages.x86_64-linux.discord;
apps.x86_64-linux.default = self.apps.x86_64-linux.discord;
overlays.default = import ./default.nix;
overlay = self.overlays.default;
};
}