File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1111 pkg-config ,
1212 python3 ,
1313 stdenv ,
14+ udev ,
1415 wrapGAppsHook3 ,
1516} :
1617
1718let
18- version = "0.1 .0" ;
19+ version = "0.2 .0" ;
1920
2021 src = fetchzip {
2122 url = "https://github.com/carrotIndustries/usbkvm/releases/download/v${ version } /usbkvm-v${ version } .tar.gz" ;
22- sha256 = "sha256-OuZ7+IjsvK7/PaiTRwssaQFJDFWJ8HX+kqV13CUyTZA =" ;
23+ sha256 = "sha256-ng6YpaN7sKEBPJcJAm0kcYtT++orweWRx6uOZFnOGG8 =" ;
2324 } ;
2425
2526 ms-tools-lib = buildGoModule {
@@ -51,6 +52,7 @@ stdenv.mkDerivation {
5152 ninja
5253 makeWrapper
5354 wrapGAppsHook3
55+ udev
5456 ] ;
5557
5658 buildInputs = [
@@ -71,6 +73,11 @@ stdenv.mkDerivation {
7173 --replace-fail "@MSLIB_H_PRECOMPILED@" "${ ms-tools-lib } /mslib.h"
7274 '' ;
7375
76+ # Install udev rules in this package's out path:
77+ mesonFlags = [
78+ "-Dudevrulesdir=lib/udev/rules.d"
79+ ] ;
80+
7481 postFixup =
7582 let
7683 GST_PLUGIN_PATH = lib . makeSearchPathOutput "lib" "lib/gstreamer-1.0" [
@@ -83,11 +90,6 @@ stdenv.mkDerivation {
8390 --prefix GST_PLUGIN_PATH : "${ GST_PLUGIN_PATH } "
8491 '' ;
8592
86- postInstall = ''
87- mkdir -p $out/lib/udev/rules.d/
88- cp ../70-usbkvm.rules $out/lib/udev/rules.d/
89- '' ;
90-
9193 meta = {
9294 homepage = "https://github.com/carrotIndustries/usbkvm" ;
9395 description = "An open-source USB KVM (Keyboard, Video and Mouse) adapter" ;
You can’t perform that action at this time.
0 commit comments