Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 60 lines 1.1 kB view raw
1{ 2 lib, 3 fetchurl, 4 fetchFromGitLab, 5 python3Packages, 6 gobject-introspection, 7 gsettings-desktop-schemas, 8 gtk3, 9 wrapGAppsHook3, 10 xrandr, 11}: 12 13let 14 inherit (python3Packages) buildPythonApplication docutils pygobject3; 15in 16buildPythonApplication rec { 17 pname = "arandr"; 18 version = "0.1.11"; 19 format = "setuptools"; 20 21 src = fetchFromGitLab { 22 owner = "arandr"; 23 repo = "arandr"; 24 tag = version; 25 hash = "sha256-nQtfOKAnWKsy2DmvtRGJa4+Y9uGgX41BeHpd9m4d9YA="; 26 }; 27 28 # patch to set mtime=0 on setup.py 29 patches = [ ./gzip-timestamp-fix.patch ]; 30 patchFlags = [ "-p0" ]; 31 32 preBuild = '' 33 rm -rf data/po/* 34 ''; 35 36 # no tests 37 doCheck = false; 38 39 buildInputs = [ 40 docutils 41 gsettings-desktop-schemas 42 gtk3 43 ]; 44 nativeBuildInputs = [ 45 gobject-introspection 46 wrapGAppsHook3 47 ]; 48 propagatedBuildInputs = [ 49 xrandr 50 pygobject3 51 ]; 52 53 meta = with lib; { 54 homepage = "https://christian.amsuess.com/tools/arandr/"; 55 description = "Simple visual front end for XRandR"; 56 license = licenses.gpl3; 57 maintainers = with maintainers; [ gepbird ]; 58 mainProgram = "arandr"; 59 }; 60}