2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, python3Packages
|
|
|
|
, gobject-introspection
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk3
|
|
|
|
, wrapGAppsHook
|
|
|
|
, xrandr
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (python3Packages) buildPythonApplication docutils pygobject3;
|
2022-07-14 12:49:19 +00:00
|
|
|
in
|
|
|
|
buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "arandr";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.1.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-07-14 12:49:19 +00:00
|
|
|
url = "https://christian.amsuess.com/tools/arandr/files/${pname}-${version}.tar.gz";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-5Mu+Npi7gSs5V3CHAXS+AJS7rrOREFqBH5X0LrGCrgI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
preBuild = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
rm -rf data/po/*
|
|
|
|
'';
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
buildInputs = [ docutils gsettings-desktop-schemas gtk3 ];
|
|
|
|
nativeBuildInputs = [ gobject-introspection wrapGAppsHook ];
|
|
|
|
propagatedBuildInputs = [ xrandr pygobject3 ];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
meta = with lib; {
|
2021-08-23 08:02:39 +00:00
|
|
|
homepage = "https://christian.amsuess.com/tools/arandr/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A simple visual front end for XRandR";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ gepbird ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|