nixpkgs/pkgs/applications/misc/seatd/default.nix

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

56 lines
1.2 KiB
Nix
Raw Normal View History

{ fetchFromSourcehut
, lib
, meson
, ninja
, pkg-config
, scdoc
, stdenv
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
2023-08-25 05:29:57 +00:00
, nixosTests
}:
2023-08-06 17:26:08 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "seatd";
2023-08-06 12:47:46 +00:00
version = "0.8.0";
src = fetchFromSourcehut {
owner = "~kennylevinsen";
repo = "seatd";
2023-08-06 17:26:08 +00:00
rev = finalAttrs.version;
hash = "sha256-YaR4VuY+wrzbnhER4bkwdm0rTY1OVMtixdDEhu7Lnws=";
};
outputs = [ "bin" "out" "dev" "man" ];
2023-08-06 17:26:08 +00:00
depsBuildBuild = [
pkg-config
];
2021-07-02 16:44:43 +00:00
2023-08-06 17:26:08 +00:00
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"
];
2023-08-25 05:29:57 +00:00
passthru.tests.basic = nixosTests.seatd;
2023-08-06 17:26:08 +00:00
meta = {
2023-08-24 13:33:27 +00:00
description = "A minimal seat management daemon, and a universal seat management library";
2023-08-06 17:26:08 +00:00
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;
2023-08-16 18:55:11 +00:00
mainProgram = "seatd";
};
2023-08-06 17:26:08 +00:00
})