-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
46 lines (42 loc) · 1.15 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
45
46
{
description = "Simple and easy to use screenshot utility for Wayland";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs, ... }@inputs:
let
inherit (nixpkgs) lib;
systems = [ "x86_64-linux" "aarch64-linux" ];
eachSystem = f: lib.genAttrs systems f;
pkgsFor = eachSystem (system:
import nixpkgs {
inherit system;
overlays = [
self.overlays.default
];
});
in
{
overlays = import ./nix/overlays.nix { inherit self lib inputs; };
packages = eachSystem (system:
let
pkgs = pkgsFor.${system};
in
{
default = self.packages.${system}.gripper;
inherit (pkgs) gripper gripper-debug;
});
devShells = eachSystem (system:
let
pkgs = pkgsFor.${system};
in
{
default = pkgs.mkShell {
name = lib.getName self.packages.${system}.default + "-shell";
inputsFrom = [
self.packages.${system}.default
];
shellHook = "exec $SHELL";
};
}
);
};
}