add flake
This commit is contained in:
parent
2ce556f9fc
commit
accc8f810b
1 changed files with 41 additions and 0 deletions
41
flake.nix
Normal file
41
flake.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
{
|
||||||
|
description = "Apply lightmaps to Razer devices";
|
||||||
|
|
||||||
|
nixConfig.bash-prompt = "\[\\e[1m\\e[32rzr-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 {
|
||||||
|
|
||||||
|
name = "rzr";
|
||||||
|
src = self;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
defaultPackage = self.packages.${system}.rzr;
|
||||||
|
|
||||||
|
# Development shell
|
||||||
|
|
||||||
|
devShell = pkgs.mkShell {
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
python3
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue