2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
|
|
|
, python3Packages
|
|
|
|
, gobject-introspection
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk3
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2022-07-14 12:49:19 +00:00
|
|
|
, 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 ];
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ gobject-introspection wrapGAppsHook3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
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/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple visual front end for XRandR";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ gepbird ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "arandr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|