-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
35 lines (29 loc) · 911 Bytes
/
flake.nix
File metadata and controls
35 lines (29 loc) · 911 Bytes
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
{
description = "Declarative config file patcher for Nix";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = {
self,
nixpkgs,
}: let
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
forEachSystem = nixpkgs.lib.genAttrs systems;
pkgsForEach = nixpkgs.legacyPackages;
in {
packages = forEachSystem (system: {
patchix = pkgsForEach.${system}.callPackage ./nix/package.nix {};
default = self.packages.${system}.patchix;
});
nixosModules.default = import ./nix/module.nix;
overlays.default = final: _prev: {
patchix = self.packages.${final.system}.patchix;
};
checks = forEachSystem (system: {
patchix = self.packages.${system}.patchix;
});
devShells = forEachSystem (system: {
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};
});
};
}