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