update flake
This commit is contained in:
parent
b9b3f6ee48
commit
def9dc0b3d
2 changed files with 7 additions and 22 deletions
14
flake.lock
generated
14
flake.lock
generated
|
|
@ -2,11 +2,11 @@
|
|||
"nodes": {
|
||||
"flake-utils": {
|
||||
"locked": {
|
||||
"lastModified": 1623875721,
|
||||
"narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=",
|
||||
"lastModified": 1631561581,
|
||||
"narHash": "sha256-3VQMV5zvxaVLvqqUrNz3iJelLw30mIVSfZmAaauM3dA=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "f7e004a55b120c02ecb6219596820fcd32ca8772",
|
||||
"rev": "7e5bf3925f6fbdfaf50a2a7ca0be2879c4261d19",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -17,10 +17,10 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1625037881,
|
||||
"narHash": "sha256-cRYHArtHYcUQWM231IrAb4GYf6VJj9AoeW7kkShVRfc=",
|
||||
"path": "/nix/store/q88kyrqnz8iaa83hpnh20x4qcd6xywn1-source",
|
||||
"rev": "e9148dc1c30e02aae80cc52f68ceb37b772066f3",
|
||||
"lastModified": 1634115022,
|
||||
"narHash": "sha256-K9DZMQ47VRrg9gtTPwex5p0E8LnwM/dDkNe7AQW0qj0=",
|
||||
"path": "/nix/store/fjn0mcw4wcm7lkcn92bzq11f0mzv3xqv-source",
|
||||
"rev": "564cb4d81d4f734dd068684adec5a60077397fe9",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
15
flake.nix
15
flake.nix
|
|
@ -1,46 +1,32 @@
|
|||
{
|
||||
description = "A simple command line frontend for OpenRazer";
|
||||
|
||||
nixConfig.bash-prompt = "\[\\e[1m\\e[32mrzr-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 rec {
|
||||
|
||||
name = "rzr";
|
||||
src = self;
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with pkgs; [
|
||||
python3Packages.colour
|
||||
python3Packages.openrazer
|
||||
python3Packages.toml
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
defaultPackage = self.packages.${system}.rzr;
|
||||
|
||||
# Development shell
|
||||
|
||||
devShell = pkgs.mkShell {
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
python3
|
||||
python3Packages.colour
|
||||
|
|
@ -50,7 +36,6 @@
|
|||
python3Packages.toml
|
||||
python3Packages.virtualenv
|
||||
];
|
||||
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue