at 23.05-pre 30 lines 736 B view raw
1{ lib, fetchFromGitHub 2, rustPackages, pkg-config, docutils 3}: 4 5rustPackages.rustPlatform.buildRustPackage rec { 6 7 pname = "mdevctl"; 8 version = "1.2.0"; 9 10 src = fetchFromGitHub { 11 owner = pname; 12 repo = pname; 13 rev = "v" + version; 14 hash = "sha256-Hgl+HsWAYIdabHJdPbCaBNnhY49vpuIjR3l6z2CAmx0="; 15 }; 16 17 cargoPatches = [ ./lock.patch ]; 18 19 cargoHash = "sha256-PXVc7KUMPze06gCnD2gqzlySwPumOw/z31CTd0UHp9w="; 20 21 nativeBuildInputs = [ pkg-config docutils ]; 22 23 meta = with lib; { 24 homepage = "https://github.com/mdevctl/mdevctl"; 25 description = "A mediated device management utility for linux"; 26 license = licenses.lgpl21Only; 27 maintainers = with maintainers; [ edwtjo ]; 28 platforms = platforms.linux; 29 }; 30}