forked from ow-mods/ow-mod-man
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
30 lines (26 loc) · 891 Bytes
/
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
{
description = "Flake for owmods-cli and owmods-gui";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = {
self,
nixpkgs,
}: let
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
pkgsFor = system:
(import nixpkgs) {
inherit system;
overlays = [self.overlays.default];
};
in {
packages = forAllSystems (system: with pkgsFor system; {inherit owmods-cli owmods-gui;});
overlays.default = import ./nix/overlay.nix;
formatter = forAllSystems (system: (pkgsFor system).alejandra);
devShells = forAllSystems (system: {default = import ./nix/shell.nix {pkgs = pkgsFor system;};});
};
nixConfig = {
extra-substituters = ["https://ow-mods.cachix.org"];
extra-trusted-public-keys = ["ow-mods.cachix.org-1:6RTOd1dSRibA2W0MpZHxzT0tw1RzyhKObTPKQJpcrZo="];
};
}