2023-07-15 17:15:38 +00:00
|
|
|
{ lib, fetchFromSourcehut, rustPlatform, pkg-config, dbus }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
let version = "0.3.0";
|
|
|
|
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;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-mWrLbCUnoJ3hVtpSU/7dw91U5TLyw5kNchX5nmP9asA=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoHash = "sha256-VK+kPX1pGhowbWKkUs1PL0DXIhDXJOFVoIHTtWQcWEs=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ dbus ];
|
|
|
|
|
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";
|
|
|
|
homepage = "https://gitlab.com/rycee/sd-switch";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ rycee ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|