-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
42 lines (37 loc) · 1.29 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
{
description = "debs";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/master";
inputs.oven.url = "github:noql-net/oven/master";
outputs = { self, nixpkgs, oven }: rec {
devShells.x86_64-linux.default = ((import ./toolbox/shell.nix) { pkgs = nixpkgs.legacyPackages.x86_64-linux; });
packages =
let
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages.x86_64-linux;
builder = import ./packages.nix;
in
{
x86_64-linux =
(builder { inherit lib pkgs; oven = oven.packages.x86_64-linux; }) //
{ default = packages.x86_64-linux.all-deb; };
aarch64-linux =
(builder { inherit lib pkgs; oven = oven.packages.aarch64-linux; }) //
{ default = packages.aarch64-linux.all-deb; };
all = {
all-deb = with pkgs;
(import ./toolbox/all-deb.nix) {
inherit lib stdenv;
debs = with packages; {
x86_64-linux = x86_64-linux.all-deb;
aarch64-linux = aarch64-linux.all-deb;
};
};
default = packages.all.all-deb;
};
};
};
nixConfig = {
extra-substituters = "https://cache.garnix.io/";
extra-trusted-public-keys = "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=";
};
}