2024-06-05 15:53:02 +00:00
|
|
|
{ lib, fetchFromSourcehut, rustPlatform, nix-update-script }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
let version = "0.5.1";
|
2023-07-15 17:15:38 +00:00
|
|
|
in rustPlatform.buildRustPackage {
|
2020-08-20 17:08:02 +00:00
|
|
|
pname = "sd-switch";
|
2023-07-15 17:15:38 +00:00
|
|
|
inherit version;
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~rycee";
|
|
|
|
repo = "sd-switch";
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-Kns49Qv3oWNmbLoLTKIcWIewDz4cR7uyMA3IHnhKyxA=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
cargoHash = "sha256-r20dJMF+0q3XLm2hn9/LTv43ApmhjJNgeiMCLfwBnOk=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Systemd unit switcher for Home Manager";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "sd-switch";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://git.sr.ht/~rycee/sd-switch";
|
|
|
|
changelog = "https://git.sr.ht/~rycee/sd-switch/refs/${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ rycee ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|