seatd: use finalAttrs
pattern
This commit is contained in:
parent
86cc23b63d
commit
c9f8bdaf6c
@ -8,22 +8,29 @@
|
|||||||
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
|
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "seatd";
|
pname = "seatd";
|
||||||
version = "0.8.0";
|
version = "0.8.0";
|
||||||
|
|
||||||
src = fetchFromSourcehut {
|
src = fetchFromSourcehut {
|
||||||
owner = "~kennylevinsen";
|
owner = "~kennylevinsen";
|
||||||
repo = "seatd";
|
repo = "seatd";
|
||||||
rev = version;
|
rev = finalAttrs.version;
|
||||||
sha256 = "sha256-YaR4VuY+wrzbnhER4bkwdm0rTY1OVMtixdDEhu7Lnws=";
|
hash = "sha256-YaR4VuY+wrzbnhER4bkwdm0rTY1OVMtixdDEhu7Lnws=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "bin" "out" "dev" "man" ];
|
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 ];
|
buildInputs = lib.optionals systemdSupport [ systemd ];
|
||||||
|
|
||||||
@ -33,12 +40,12 @@ stdenv.mkDerivation rec {
|
|||||||
"-Dserver=enabled"
|
"-Dserver=enabled"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "A universal seat management library";
|
description = "A universal seat management library";
|
||||||
changelog = "https://git.sr.ht/~kennylevinsen/seatd/refs/${version}";
|
changelog = "https://git.sr.ht/~kennylevinsen/seatd/refs/${finalAttrs.version}";
|
||||||
homepage = "https://sr.ht/~kennylevinsen/seatd/";
|
homepage = "https://sr.ht/~kennylevinsen/seatd/";
|
||||||
license = licenses.mit;
|
license = lib.licenses.mit;
|
||||||
platforms = with platforms; freebsd ++ linux ++ netbsd;
|
maintainers = with lib.maintainers; [ emantor ];
|
||||||
maintainers = with maintainers; [ emantor ];
|
platforms = with lib.platforms; freebsd ++ linux ++ netbsd;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user