depot/third_party/nixpkgs/pkgs/tools/X11/arandr/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

41 lines
959 B
Nix

{ lib
, fetchurl
, python3Packages
, gobject-introspection
, gsettings-desktop-schemas
, gtk3
, wrapGAppsHook3
, xrandr
}:
let
inherit (python3Packages) buildPythonApplication docutils pygobject3;
in
buildPythonApplication rec {
pname = "arandr";
version = "0.1.11";
src = fetchurl {
url = "https://christian.amsuess.com/tools/arandr/files/${pname}-${version}.tar.gz";
hash = "sha256-5Mu+Npi7gSs5V3CHAXS+AJS7rrOREFqBH5X0LrGCrgI=";
};
preBuild = ''
rm -rf data/po/*
'';
# no tests
doCheck = false;
buildInputs = [ docutils gsettings-desktop-schemas gtk3 ];
nativeBuildInputs = [ gobject-introspection wrapGAppsHook3 ];
propagatedBuildInputs = [ xrandr pygobject3 ];
meta = with lib; {
homepage = "https://christian.amsuess.com/tools/arandr/";
description = "Simple visual front end for XRandR";
license = licenses.gpl3;
maintainers = with maintainers; [ gepbird ];
mainProgram = "arandr";
};
}