forked from mirrors/nixpkgs
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
39 lines
1,019 B
Nix
39 lines
1,019 B
Nix
{ lib, stdenv, fetchFromGitHub
|
|
, meson, ninja, pkg-config, scdoc
|
|
, wayland, wayland-protocols, systemd
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "swayidle";
|
|
version = "1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "swaywm";
|
|
repo = "swayidle";
|
|
rev = version;
|
|
sha256 = "1nd3v8r9549lykdwh4krldfl59lzaspmmai5k1icy7dvi6kkr18r";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace meson.build \
|
|
--replace "version: '1.5'" "version: '${version}'"
|
|
'';
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc ];
|
|
buildInputs = [ wayland wayland-protocols systemd ];
|
|
|
|
mesonFlags = [ "-Dman-pages=enabled" "-Dlogind=enabled" ];
|
|
|
|
meta = with lib; {
|
|
description = "Idle management daemon for Wayland";
|
|
longDescription = ''
|
|
Sway's idle management daemon. It is compatible with any Wayland
|
|
compositor which implements the KDE idle protocol.
|
|
'';
|
|
inherit (src.meta) homepage;
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ primeos ];
|
|
};
|
|
}
|