update flake

This commit is contained in:
Denis Lehmann 2021-10-16 00:18:22 +02:00
parent b9b3f6ee48
commit def9dc0b3d
2 changed files with 7 additions and 22 deletions

14
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1623875721, "lastModified": 1631561581,
"narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=", "narHash": "sha256-3VQMV5zvxaVLvqqUrNz3iJelLw30mIVSfZmAaauM3dA=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "f7e004a55b120c02ecb6219596820fcd32ca8772", "rev": "7e5bf3925f6fbdfaf50a2a7ca0be2879c4261d19",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -17,10 +17,10 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1625037881, "lastModified": 1634115022,
"narHash": "sha256-cRYHArtHYcUQWM231IrAb4GYf6VJj9AoeW7kkShVRfc=", "narHash": "sha256-K9DZMQ47VRrg9gtTPwex5p0E8LnwM/dDkNe7AQW0qj0=",
"path": "/nix/store/q88kyrqnz8iaa83hpnh20x4qcd6xywn1-source", "path": "/nix/store/fjn0mcw4wcm7lkcn92bzq11f0mzv3xqv-source",
"rev": "e9148dc1c30e02aae80cc52f68ceb37b772066f3", "rev": "564cb4d81d4f734dd068684adec5a60077397fe9",
"type": "path" "type": "path"
}, },
"original": { "original": {

View file

@ -1,46 +1,32 @@
{ {
description = "A simple command line frontend for OpenRazer"; description = "A simple command line frontend for OpenRazer";
nixConfig.bash-prompt = "\[\\e[1m\\e[32mrzr-develop\\e[0m\]$ "; nixConfig.bash-prompt = "\[\\e[1m\\e[32mrzr-develop\\e[0m\]$ ";
inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }: outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem flake-utils.lib.eachDefaultSystem
(system: (system:
let let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in in
{ {
# Package # Package
packages.rzr = packages.rzr =
pkgs.python3Packages.buildPythonApplication rec { pkgs.python3Packages.buildPythonApplication rec {
name = "rzr"; name = "rzr";
src = self; src = self;
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;
# Development shell # Development shell
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
python3 python3
python3Packages.colour python3Packages.colour
@ -50,7 +36,6 @@
python3Packages.toml python3Packages.toml
python3Packages.virtualenv python3Packages.virtualenv
]; ];
}; };
} }
); );