at 24.11-pre 42 lines 983 B view raw
1{ lib 2, rustPlatform 3, fetchCrate 4, docutils 5, installShellFiles 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "mdevctl"; 10 version = "1.3.0"; 11 12 src = fetchCrate { 13 inherit pname version; 14 hash = "sha256-4K4NW3DOTtzZJ7Gg0mnRPr88YeqEjTtKX+C4P8i923E="; 15 }; 16 17 cargoHash = "sha256-hCqNy32uPLsKfUJqiG2DRcXfqdvlp4bCutQmt+FieXc="; 18 19 nativeBuildInputs = [ 20 docutils 21 installShellFiles 22 ]; 23 24 postInstall = '' 25 ln -s mdevctl $out/bin/lsmdev 26 27 install -Dm444 60-mdevctl.rules -t $out/lib/udev/rules.d 28 29 installManPage $releaseDir/build/mdevctl-*/out/mdevctl.8 30 ln -s mdevctl.8 $out/share/man/man8/lsmdev.8 31 32 installShellCompletion $releaseDir/build/mdevctl-*/out/{lsmdev,mdevctl}.bash 33 ''; 34 35 meta = with lib; { 36 homepage = "https://github.com/mdevctl/mdevctl"; 37 description = "A mediated device management utility for linux"; 38 license = licenses.lgpl21Only; 39 maintainers = with maintainers; [ edwtjo ]; 40 platforms = platforms.linux; 41 }; 42}