mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{ fetchFromSourcehut
|
|
, lib
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, scdoc
|
|
, stdenv
|
|
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
|
|
, nixosTests
|
|
}:
|
|
|
|
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"
|
|
];
|
|
|
|
passthru.tests.basic = nixosTests.seatd;
|
|
|
|
meta = {
|
|
description = "Minimal seat management daemon, and 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;
|
|
mainProgram = "seatd";
|
|
};
|
|
})
|