Skip to content

Commit b4ce201

Browse files
authored
usbkvm: 0.1.0 -> 0.2.0 (NixOS#371137)
2 parents 0fbfc50 + b7c362f commit b4ce201

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

pkgs/by-name/us/usbkvm/package.nix

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@
1111
pkg-config,
1212
python3,
1313
stdenv,
14+
udev,
1415
wrapGAppsHook3,
1516
}:
1617

1718
let
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";

0 commit comments

Comments
 (0)