mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 19:15:39 +00:00
27 lines
693 B
Nix
27 lines
693 B
Nix
{ lib, fetchFromGitLab, rustPlatform, pkg-config, dbus }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sd-switch";
|
|
version = "0.2.1";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "rycee";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0sg1y8lb2pnll3408fbqp65acys31mrlzsqfrwm4nvbkayf0jcv3";
|
|
};
|
|
|
|
cargoSha256 = "16yb61wihg06i2h9vjqcsjqkjjpmxyv4df22i25034gkcgb20xcn";
|
|
|
|
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;
|
|
};
|
|
}
|