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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
751 B
Nix
Raw Normal View History

2023-07-07 20:56:01 +00:00
{ lib, fetchFromSourcehut, rustPlatform, pkg-config, dbus }:
2020-07-18 16:59:44 +00:00
2023-07-07 20:56:01 +00:00
let version = "0.3.0";
in rustPlatform.buildRustPackage {
2020-07-18 16:59:44 +00:00
pname = "sd-switch";
2023-07-07 20:56:01 +00:00
inherit version;
2020-07-18 16:59:44 +00:00
2023-07-07 20:56:01 +00:00
src = fetchFromSourcehut {
owner = "~rycee";
repo = "sd-switch";
2020-07-18 16:59:44 +00:00
rev = version;
2023-07-07 20:56:01 +00:00
hash = "sha256-mWrLbCUnoJ3hVtpSU/7dw91U5TLyw5kNchX5nmP9asA=";
2020-07-18 16:59:44 +00:00
};
2023-07-07 20:56:01 +00:00
cargoHash = "sha256-VK+kPX1pGhowbWKkUs1PL0DXIhDXJOFVoIHTtWQcWEs=";
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";
mainProgram = "sd-switch";
2020-07-18 16:59:44 +00:00
homepage = "https://gitlab.com/rycee/sd-switch";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ rycee ];
platforms = platforms.linux;
};
}