8 rustPlatform.buildRustPackage rec {
13 inherit pname version;
14 hash = "sha256-4K4NW3DOTtzZJ7Gg0mnRPr88YeqEjTtKX+C4P8i923E=";
17 cargoHash = "sha256-hCqNy32uPLsKfUJqiG2DRcXfqdvlp4bCutQmt+FieXc=";
25 ln -s mdevctl $out/bin/lsmdev
27 install -Dm444 60-mdevctl.rules -t $out/lib/udev/rules.d
29 installManPage $releaseDir/build/mdevctl-*/out/mdevctl.8
30 ln -s mdevctl.8 $out/share/man/man8/lsmdev.8
32 installShellCompletion $releaseDir/build/mdevctl-*/out/{lsmdev,mdevctl}.bash
36 homepage = "https://github.com/mdevctl/mdevctl";
37 description = "Mediated device management utility for linux";
38 license = licenses.lgpl21Only;
39 maintainers = with maintainers; [ edwtjo ];
40 platforms = platforms.linux;