mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
d7c6aaa127
Before, the build process wasn't able to find `pkg-config` to discover `wayland-scanner` in `$PATH`, which is a nativeBuildInput.
37 lines
775 B
Nix
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";
|
|
};
|
|
}
|