at 23.05-pre 26 lines 693 B view raw
1{ lib, fetchFromGitLab, rustPlatform, pkg-config, dbus }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "sd-switch"; 5 version = "0.2.3"; 6 7 src = fetchFromGitLab { 8 owner = "rycee"; 9 repo = pname; 10 rev = version; 11 sha256 = "12h2d7v7pdz7b0hrna64561kf35nbpwb2kzxa791xk8raxc2b72k"; 12 }; 13 14 cargoSha256 = "12ny3cir2nxzrmf4vwq6sgc35dbpq88hav53xqdp44rigdf4vzbs"; 15 16 nativeBuildInputs = [ pkg-config ]; 17 buildInputs = [ dbus ]; 18 19 meta = with lib; { 20 description = "A systemd unit switcher for Home Manager"; 21 homepage = "https://gitlab.com/rycee/sd-switch"; 22 license = licenses.gpl3Plus; 23 maintainers = with maintainers; [ rycee ]; 24 platforms = platforms.linux; 25 }; 26}