uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
53
pkgs/development/python-modules/openrazer/daemon.nix
Normal file
53
pkgs/development/python-modules/openrazer/daemon.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib
|
||||
, buildPythonApplication
|
||||
, isPy3k
|
||||
, daemonize
|
||||
, dbus-python
|
||||
, fetchFromGitHub
|
||||
, gobject-introspection
|
||||
, gtk3
|
||||
, makeWrapper
|
||||
, pygobject3
|
||||
, pyudev
|
||||
, setproctitle
|
||||
, wrapGAppsHook
|
||||
}:
|
||||
|
||||
let
|
||||
common = import ./common.nix { inherit lib fetchFromGitHub; };
|
||||
in
|
||||
buildPythonApplication (common // rec {
|
||||
pname = "openrazer_daemon";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
daemonize
|
||||
dbus-python
|
||||
gobject-introspection
|
||||
gtk3
|
||||
pygobject3
|
||||
pyudev
|
||||
setproctitle
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
cd daemon
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace openrazer_daemon/daemon.py --replace "plugdev" "openrazer"
|
||||
'';
|
||||
|
||||
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";
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue