seatd: use finalAttrs pattern

This commit is contained in:
Pol Dellaiera 2023-08-06 19:26:08 +02:00
parent 86cc23b63d
commit c9f8bdaf6c
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -8,22 +8,29 @@
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "seatd";
version = "0.8.0";
src = fetchFromSourcehut {
owner = "~kennylevinsen";
repo = "seatd";
rev = version;
sha256 = "sha256-YaR4VuY+wrzbnhER4bkwdm0rTY1OVMtixdDEhu7Lnws=";
rev = finalAttrs.version;
hash = "sha256-YaR4VuY+wrzbnhER4bkwdm0rTY1OVMtixdDEhu7Lnws=";
};
outputs = [ "bin" "out" "dev" "man" ];
depsBuildBuild = [ pkg-config ];
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [ meson ninja pkg-config scdoc ];
nativeBuildInputs = [
meson
ninja
pkg-config
scdoc
];
buildInputs = lib.optionals systemdSupport [ systemd ];
@ -33,12 +40,12 @@ stdenv.mkDerivation rec {
"-Dserver=enabled"
];
meta = with lib; {
meta = {
description = "A universal seat management library";
changelog = "https://git.sr.ht/~kennylevinsen/seatd/refs/${version}";
homepage = "https://sr.ht/~kennylevinsen/seatd/";
license = licenses.mit;
platforms = with platforms; freebsd ++ linux ++ netbsd;
maintainers = with maintainers; [ emantor ];
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;
};
}
})