-
Notifications
You must be signed in to change notification settings - Fork 44
/
flake.nix
34 lines (29 loc) · 1020 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
31
32
33
34
{
description = "System76 Keyboard Configurator";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
naersk.url = "github:nix-community/naersk";
};
outputs = { self, nixpkgs, flake-utils, naersk }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
naersk-lib = naersk.lib."${system}";
in
{
packages = rec {
default = system76-keyboard-configurator;
system76-keyboard-configurator = naersk-lib.buildPackage {
name = "system76-keyboard-configurator";
version = "1.3.12";
src = ./.;
buildInputs = with pkgs; [ pkg-config rustc cargo hidapi glib gtk3 ];
};
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ pkg-config rustc cargo hidapi glib gtk3 ];
};
formatter = nixpkgs.legacyPackages."${system}".nixfmt;
});
}