mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
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
|
||||
}:
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user