3
0
Fork 0
forked from mirrors/nixpkgs

openrazer-daemon: make build src name independent

This commit is contained in:
Jonathan Ringer 2022-01-03 20:11:59 -08:00
parent 281f28d93d
commit 4a7e627446
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -21,8 +21,6 @@ buildPythonApplication (common // rec {
disabled = !isPy3k;
sourceRoot = "${src.name}/daemon";
outputs = [ "out" "man" ];
nativeBuildInputs = [ makeWrapper wrapGAppsHook ];
@ -37,6 +35,10 @@ buildPythonApplication (common // rec {
setproctitle
];
prePatch = ''
cd daemon
'';
postPatch = ''
substituteInPlace openrazer_daemon/daemon.py --replace "plugdev" "openrazer"
'';