@@ -0,0 +1,33 @@
1+{ dbus
2+, fetchFromGitHub
3+, lib
4+, pkg-config
5+, rustPlatform
6+}:
7+let
8+ version = "0.1.1";
9+in
10+rustPlatform.buildRustPackage {
11+ pname = "gnome-randr";
12+ inherit version;
13+
14+ src = fetchFromGitHub {
15+ owner = "maxwellainatchi";
16+ repo = "gnome-randr-rust";
17+ rev = "v" + version;
18+ sha256 = "sha256-mciHgBEOCFjRA4MSoEdP7bIag0KE+zRbk4wOkB2PAn0=";
19+ };
20+
21+ cargoSha256 = "sha256-rk8/sg5rSNS741QOWoAGIloqph+ZdBjl/xUaFl0A3Bs=";
22+
23+ buildInputs = [ dbus ];
24+
25+ nativeBuildInputs = [ pkg-config ];
26+
27+ meta = {
28+ description = "An xrandr-like CLI for configuring displays on GNOME/Wayland, on distros that don't support `wlr-randr`";
29+ homepage = "https://github.com/maxwellainatchi/gnome-randr-rust";
30+ license = lib.licenses.mit;
31+ maintainers = [ lib.maintainers.roberth ];
32+ };
33+}