lol
1{ lib
2, fetchurl
3, python3Packages
4, gobject-introspection
5, gsettings-desktop-schemas
6, gtk3
7, wrapGAppsHook3
8, xrandr
9}:
10
11let
12 inherit (python3Packages) buildPythonApplication docutils pygobject3;
13in
14buildPythonApplication rec {
15 pname = "arandr";
16 version = "0.1.11";
17
18 src = fetchurl {
19 url = "https://christian.amsuess.com/tools/arandr/files/${pname}-${version}.tar.gz";
20 hash = "sha256-5Mu+Npi7gSs5V3CHAXS+AJS7rrOREFqBH5X0LrGCrgI=";
21 };
22
23 preBuild = ''
24 rm -rf data/po/*
25 '';
26
27 # no tests
28 doCheck = false;
29
30 buildInputs = [ docutils gsettings-desktop-schemas gtk3 ];
31 nativeBuildInputs = [ gobject-introspection wrapGAppsHook3 ];
32 propagatedBuildInputs = [ xrandr pygobject3 ];
33
34 meta = with lib; {
35 homepage = "https://christian.amsuess.com/tools/arandr/";
36 description = "A simple visual front end for XRandR";
37 license = licenses.gpl3;
38 maintainers = with maintainers; [ gepbird ];
39 mainProgram = "arandr";
40 };
41}