-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
42 lines (41 loc) · 1.26 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 = "A simple command line frontend for OpenRazer";
nixConfig.bash-prompt = "\[\\e[1m\\e[32mrzr-develop\\e[0m\]$ ";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
# Package
packages.rzr =
pkgs.python3Packages.buildPythonApplication rec {
name = "rzr";
src = self;
nativeBuildInputs = with pkgs; [
wrapGAppsHook
];
propagatedBuildInputs = with pkgs; [
python3Packages.colour
python3Packages.openrazer
python3Packages.toml
];
};
defaultPackage = self.packages.${system}.rzr;
# Development shell
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
python3
python3Packages.colour
python3Packages.openrazer
python3Packages.pip
python3Packages.setuptools
python3Packages.toml
python3Packages.virtualenv
];
};
}
);
}