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;
|
||
|
|
};
|
||
|
|
}
|