nixpkgs/pkgs/tools/wayland/wlr-randr/default.nix
Florian Klink d7c6aaa127 wlr-randr: fix cross compilation
Before, the build process wasn't able to find `pkg-config` to discover
`wayland-scanner` in `$PATH`, which is a nativeBuildInput.
2024-07-17 10:59:40 +02:00

37 lines
775 B
Nix

{ lib
, stdenv
, fetchFromSourcehut
, meson
, ninja
, pkg-config
, wayland
, wayland-scanner
}:
stdenv.mkDerivation rec {
pname = "wlr-randr";
version = "0.4.1";
src = fetchFromSourcehut {
owner = "~emersion";
repo = pname;
rev = "v${version}";
hash = "sha256-2kWTVAi4hq2d9jQ6yBLVzm3x7n/oSvBdZ45WyjhXhc4=";
};
strictDeps = true;
nativeBuildInputs = [ meson ninja pkg-config wayland-scanner ];
buildInputs = [ wayland ];
depsBuildBuild = [
pkg-config
];
meta = with lib; {
description = "Xrandr clone for wlroots compositors";
homepage = "https://git.sr.ht/~emersion/wlr-randr";
license = licenses.mit;
maintainers = with maintainers; [ ma27 ];
platforms = platforms.linux;
mainProgram = "wlr-randr";
};
}