add flake

This commit is contained in:
Denis Lehmann 2021-04-21 11:55:38 +02:00
parent 2ce556f9fc
commit accc8f810b

41
flake.nix Normal file
View 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
];
};
}
);
}