Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
831 B
Nix
38 lines
831 B
Nix
{
|
|
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;
|
|
};
|
|
}
|