2024-06-05 15:53:02 +00:00
|
|
|
{ lib, fetchFromSourcehut, rustPlatform, nix-update-script }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
let version = "0.4.0";
|
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-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-PPFYH34HAD/vC+9jpA1iPQRVNR6MX8ncSPC+7bl2oHY=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-zUoa7nPNFvnYekbEZwtnJKZ6qd47Sb4LZGEkaKVQ9ZQ=";
|
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; {
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "A 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;
|
|
|
|
};
|
|
|
|
}
|