at 23.11-beta 27 lines 720 B view raw
1{ lib, fetchFromSourcehut, rustPlatform, pkg-config, dbus }: 2 3let version = "0.3.0"; 4in rustPlatform.buildRustPackage { 5 pname = "sd-switch"; 6 inherit version; 7 8 src = fetchFromSourcehut { 9 owner = "~rycee"; 10 repo = "sd-switch"; 11 rev = version; 12 hash = "sha256-mWrLbCUnoJ3hVtpSU/7dw91U5TLyw5kNchX5nmP9asA="; 13 }; 14 15 cargoHash = "sha256-VK+kPX1pGhowbWKkUs1PL0DXIhDXJOFVoIHTtWQcWEs="; 16 17 nativeBuildInputs = [ pkg-config ]; 18 buildInputs = [ dbus ]; 19 20 meta = with lib; { 21 description = "A systemd unit switcher for Home Manager"; 22 homepage = "https://gitlab.com/rycee/sd-switch"; 23 license = licenses.gpl3Plus; 24 maintainers = with maintainers; [ rycee ]; 25 platforms = platforms.linux; 26 }; 27}