Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
831 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
fetchFromSourcehut,
rustPlatform,
nix-update-script,
}:
let
version = "0.6.2";
in
rustPlatform.buildRustPackage {
pname = "sd-switch";
inherit version;
src = fetchFromSourcehut {
owner = "~rycee";
repo = "sd-switch";
rev = version;
hash = "sha256-3+FGARca3xcCYKEAxtrhnSnpOP2JZurOPzKvNhAYjkg=";
};
cargoHash = "sha256-jclRF05eUAW/ggCmfZfWE6c4q25d/WGX0dad4rsP8vk=";
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Systemd unit switcher for Home Manager";
mainProgram = "sd-switch";
homepage = "https://git.sr.ht/~rycee/sd-switch";
changelog = "https://git.sr.ht/~rycee/sd-switch/refs/${version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ rycee ];
platforms = lib.platforms.linux;
};
}