Merge pull request #64552 from evanjs/feature/openrazer-2.3.1
openrazer: init at 2.6.0
This commit is contained in:
17
pkgs/development/python-modules/openrazer/common.nix
Normal file
17
pkgs/development/python-modules/openrazer/common.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
}: rec {
|
||||
version = "2.6.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "openrazer";
|
||||
repo = "openrazer";
|
||||
rev = "v${version}";
|
||||
sha256 = "1s5irs3avrlp891mxan3z8p55ias9rq26rqp2qrlcc6i4vl29di0";
|
||||
};
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://openrazer.github.io/;
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ roelvandijk ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
45
pkgs/development/python-modules/openrazer/daemon.nix
Normal file
45
pkgs/development/python-modules/openrazer/daemon.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ buildPythonApplication
|
||||
, daemonize
|
||||
, dbus-python
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, gobject-introspection
|
||||
, gtk3
|
||||
, makeWrapper
|
||||
, pygobject3
|
||||
, pyudev
|
||||
, setproctitle
|
||||
, stdenv
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
|
||||
let
|
||||
common = import ./common.nix { inherit stdenv fetchFromGitHub; };
|
||||
in
|
||||
buildPythonApplication (common // rec {
|
||||
pname = "openrazer_daemon";
|
||||
|
||||
sourceRoot = "source/daemon";
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
daemonize
|
||||
dbus-python
|
||||
gobject-introspection
|
||||
gtk3
|
||||
pygobject3
|
||||
pyudev
|
||||
setproctitle
|
||||
];
|
||||
|
||||
postBuild = ''
|
||||
DESTDIR="$out" PREFIX="" make install manpages
|
||||
'';
|
||||
|
||||
meta = common.meta // {
|
||||
description = "An entirely open source user-space daemon that allows you to manage your Razer peripherals on GNU/Linux";
|
||||
};
|
||||
})
|
||||
26
pkgs/development/python-modules/openrazer/pylib.nix
Normal file
26
pkgs/development/python-modules/openrazer/pylib.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ buildPythonPackage
|
||||
, dbus-python
|
||||
, fetchFromGitHub
|
||||
, numpy
|
||||
, stdenv
|
||||
, openrazer-daemon
|
||||
}:
|
||||
|
||||
let
|
||||
common = import ./common.nix { inherit stdenv fetchFromGitHub; };
|
||||
in
|
||||
buildPythonPackage (common // rec {
|
||||
pname = "openrazer";
|
||||
|
||||
sourceRoot = "source/pylib";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dbus-python
|
||||
numpy
|
||||
openrazer-daemon
|
||||
];
|
||||
|
||||
meta = common.meta // {
|
||||
description = "An entirely open source Python library that allows you to manage your Razer peripherals on GNU/Linux";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user