mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
38 lines
831 B
Nix
38 lines
831 B
Nix
{
|
|
lib,
|
|
fetchFromSourcehut,
|
|
rustPlatform,
|
|
nix-update-script,
|
|
}:
|
|
|
|
let
|
|
version = "0.6.4";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "sd-switch";
|
|
inherit version;
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~rycee";
|
|
repo = "sd-switch";
|
|
rev = version;
|
|
hash = "sha256-OtxoAo+S8iuVa2jhschSQCVQ51fy80zIlYAuZvPpbBw=";
|
|
};
|
|
|
|
cargoHash = "sha256-SEh9Me4Bkxv4T6R31VEBtzutpbfR+PtQXH7PmOfWeuc=";
|
|
|
|
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;
|
|
};
|
|
}
|