2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitLab, rustPlatform, pkg-config, dbus }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sd-switch";
|
2021-05-28 09:39:13 +00:00
|
|
|
version = "0.2.2";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "rycee";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-05-28 09:39:13 +00:00
|
|
|
sha256 = "0vqvwly1vidzl3d89s7jysd5lc29d6skd52pf5ibxfwhrir50sw0";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "1m08qrz2qhf71d1fxw08wc93gfyj0hrh2hp3s17g4g1cw0jvcmm5";
|
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;
|
|
|
|
};
|
|
|
|
}
|