depot/third_party/nixpkgs/pkgs/applications/misc/seatd/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

51 lines
1.1 KiB
Nix

{ fetchFromSourcehut
, lib
, meson
, ninja
, pkg-config
, scdoc
, stdenv
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
}:
stdenv.mkDerivation (finalAttrs: {
pname = "seatd";
version = "0.8.0";
src = fetchFromSourcehut {
owner = "~kennylevinsen";
repo = "seatd";
rev = finalAttrs.version;
hash = "sha256-YaR4VuY+wrzbnhER4bkwdm0rTY1OVMtixdDEhu7Lnws=";
};
outputs = [ "bin" "out" "dev" "man" ];
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
meson
ninja
pkg-config
scdoc
];
buildInputs = lib.optionals systemdSupport [ systemd ];
mesonFlags = [
"-Dlibseat-logind=${if systemdSupport then "systemd" else "disabled"}"
"-Dlibseat-builtin=enabled"
"-Dserver=enabled"
];
meta = {
description = "A universal seat management library";
changelog = "https://git.sr.ht/~kennylevinsen/seatd/refs/${finalAttrs.version}";
homepage = "https://sr.ht/~kennylevinsen/seatd/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ emantor ];
platforms = with lib.platforms; freebsd ++ linux ++ netbsd;
};
})