nixpkgs/pkgs/tools/X11/arandr/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

42 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";
};
}