From accc8f810bf90572040fb57535041aa6d2a2b0f9 Mon Sep 17 00:00:00 2001 From: Denis Lehmann Date: Wed, 21 Apr 2021 11:55:38 +0200 Subject: [PATCH] add flake --- flake.nix | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b840ffc --- /dev/null +++ b/flake.nix @@ -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 + ]; + }; + + } + + ); +}