nixpkgs/pkgs/os-specific/linux/sd-switch/default.nix
2021-05-20 17:19:22 -07:00

27 lines
693 B
Nix

{ lib, fetchFromGitLab, rustPlatform, pkg-config, dbus }:
rustPlatform.buildRustPackage rec {
pname = "sd-switch";
version = "0.2.2";
src = fetchFromGitLab {
owner = "rycee";
repo = pname;
rev = version;
sha256 = "0vqvwly1vidzl3d89s7jysd5lc29d6skd52pf5ibxfwhrir50sw0";
};
cargoSha256 = "1m08qrz2qhf71d1fxw08wc93gfyj0hrh2hp3s17g4g1cw0jvcmm5";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dbus ];
meta = with lib; {
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;
};
}