format flake

This commit is contained in:
Denis Lehmann 2021-04-21 12:30:39 +02:00
parent a2f710c263
commit 0b656c26ff

View file

@ -26,13 +26,13 @@
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
wrapGAppsHook wrapGAppsHook
]; ];
propagatedBuildInputs = with pkgs; [ propagatedBuildInputs = with pkgs; [
python3Packages.colour python3Packages.colour
python3Packages.openrazer python3Packages.openrazer
python3Packages.toml python3Packages.toml
]; ];
}; };
defaultPackage = self.packages.${system}.rzr; defaultPackage = self.packages.${system}.rzr;
@ -40,6 +40,7 @@
# Development shell # Development shell
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
python3 python3
python3Packages.pip python3Packages.pip
@ -48,6 +49,7 @@
python3Packages.openrazer python3Packages.openrazer
python3Packages.toml python3Packages.toml
]; ];
shellHook = '' shellHook = ''
if [ ! -d .venv ]; then if [ ! -d .venv ]; then
python -m venv .venv python -m venv .venv
@ -56,6 +58,7 @@
pip install --upgrade pip pip install --upgrade pip
pip install -r requirements.txt pip install -r requirements.txt
''; '';
}; };
} }