-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathflake.nix
44 lines (38 loc) · 1.13 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
{
description = "A minimal command line client for watching/recording Twitch streams";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
systems.url = "github:nix-systems/default-linux";
};
outputs = {
self,
nixpkgs,
fenix,
systems,
...
} @ inputs: let
inherit (nixpkgs) lib;
eachSystem = lib.genAttrs (import systems);
pkgsFor = eachSystem (system:
import nixpkgs {
localSystem.system = system;
overlays = [self.overlays.default];
});
in {
overlays = {default = import ./nix/overlays.nix {inherit fenix;};};
packages = eachSystem (system: {
default = self.packages.${system}.twitch-hls-client;
inherit (pkgsFor.${system}) twitch-hls-client;
});
homeManagerModules = {
default = self.homeManagerModules.twitch-hls-client;
twitch-hls-client = import ./nix/hm-module.nix self;
};
checks = eachSystem (system: self.packages.${system});
formatter = eachSystem (system: pkgsFor.${system}.alejandra);
};
}