2021-02-16 03:30:42 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-06-27 11:48:36 +00:00
|
|
|
, fetchFromSourcehut
|
2021-02-16 03:30:42 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wayland
|
2022-04-06 13:40:55 +00:00
|
|
|
, wayland-scanner
|
2021-02-16 03:30:42 +00:00
|
|
|
}:
|
2019-09-18 11:15:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wlr-randr";
|
2024-03-08 00:22:20 +00:00
|
|
|
version = "0.4.1";
|
2019-09-18 11:15:32 +00:00
|
|
|
|
2022-06-27 11:48:36 +00:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~emersion";
|
2019-09-18 11:15:32 +00:00
|
|
|
repo = pname;
|
2020-07-27 14:49:23 +00:00
|
|
|
rev = "v${version}";
|
2024-03-08 00:22:20 +00:00
|
|
|
hash = "sha256-2kWTVAi4hq2d9jQ6yBLVzm3x7n/oSvBdZ45WyjhXhc4=";
|
2019-09-18 11:15:32 +00:00
|
|
|
};
|
|
|
|
|
2022-05-09 14:18:15 +00:00
|
|
|
strictDeps = true;
|
2022-04-06 13:40:55 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config wayland-scanner ];
|
2019-09-18 11:15:32 +00:00
|
|
|
buildInputs = [ wayland ];
|
2024-07-17 08:58:35 +00:00
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2019-09-18 11:15:32 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-09-18 11:15:32 +00:00
|
|
|
description = "Xrandr clone for wlroots compositors";
|
2022-06-27 11:48:36 +00:00
|
|
|
homepage = "https://git.sr.ht/~emersion/wlr-randr";
|
2021-02-16 03:30:42 +00:00
|
|
|
license = licenses.mit;
|
2019-09-18 11:15:32 +00:00
|
|
|
maintainers = with maintainers; [ ma27 ];
|
2023-03-05 12:59:54 +00:00
|
|
|
platforms = platforms.linux;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "wlr-randr";
|
2019-09-18 11:15:32 +00:00
|
|
|
};
|
|
|
|
}
|