nixpkgs/pkgs/os-specific/linux/sd-switch/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

29 lines
751 B
Nix

{ lib, fetchFromSourcehut, rustPlatform, pkg-config, dbus }:
let version = "0.3.0";
in rustPlatform.buildRustPackage {
pname = "sd-switch";
inherit version;
src = fetchFromSourcehut {
owner = "~rycee";
repo = "sd-switch";
rev = version;
hash = "sha256-mWrLbCUnoJ3hVtpSU/7dw91U5TLyw5kNchX5nmP9asA=";
};
cargoHash = "sha256-VK+kPX1pGhowbWKkUs1PL0DXIhDXJOFVoIHTtWQcWEs=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dbus ];
meta = with lib; {
description = "A systemd unit switcher for Home Manager";
mainProgram = "sd-switch";
homepage = "https://gitlab.com/rycee/sd-switch";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ rycee ];
platforms = platforms.linux;
};
}