blob: ed4b5f05fcd30fc970adf5dba0953b6b5063166c (
plain)
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
|
{
inputs = {
utils.url = "github:numtide/flake-utils";
naersk = {
url = "github:nix-community/naersk";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
nixpkgs,
utils,
naersk,
...
}: let
supportedSystsems = with utils.lib.system; [
x86_64-linux
# x86_64-darwin
# aarch64-linux
# aarch64-darwin
];
packageSet = pkgs:
with pkgs; {
treefetch = callPackage ./pkgs/treefetch.nix {inherit naersk;};
};
overrides = prev: {
discord-canary = import ./pkgs/discord-canary.nix prev;
};
in
utils.lib.eachSystem supportedSystsems (system: let
pkgs = import nixpkgs {inherit system;};
in {
formatter = pkgs.alejandra;
packages = let
p = packageSet pkgs;
in
p // {default = p.treefetch;};
})
// {
overlays.default = final: prev: packageSet final // overrides prev;
};
}
|