nixpkgs/pkgs/os-specific/linux/sd-switch/default.nix

27 lines
693 B
Nix
Raw Normal View History

{ lib, fetchFromGitLab, rustPlatform, pkg-config, dbus }:
2020-07-18 16:59:44 +00:00
rustPlatform.buildRustPackage rec {
pname = "sd-switch";
2021-05-20 22:13:03 +00:00
version = "0.2.2";
2020-07-18 16:59:44 +00:00
src = fetchFromGitLab {
owner = "rycee";
repo = pname;
rev = version;
2021-05-20 22:13:03 +00:00
sha256 = "0vqvwly1vidzl3d89s7jysd5lc29d6skd52pf5ibxfwhrir50sw0";
2020-07-18 16:59:44 +00:00
};
2021-05-20 22:13:03 +00:00
cargoSha256 = "1m08qrz2qhf71d1fxw08wc93gfyj0hrh2hp3s17g4g1cw0jvcmm5";
2020-07-18 16:59:44 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dbus ];
meta = with lib; {
2020-07-18 16:59:44 +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;
};
}