2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchurl, python3Packages
|
2019-05-20 08:37:11 +00:00
|
|
|
, gobject-introspection, gsettings-desktop-schemas, gtk3
|
|
|
|
, wrapGAppsHook, xrandr
|
|
|
|
}:
|
2013-09-23 20:33:51 +00:00
|
|
|
|
2016-11-09 11:05:02 +00:00
|
|
|
let
|
2019-04-30 04:30:18 +00:00
|
|
|
inherit (python3Packages) buildPythonApplication docutils pygobject3;
|
2020-03-29 10:34:50 +00:00
|
|
|
pname = "arandr";
|
|
|
|
version = "0.1.10";
|
|
|
|
name = "${pname}-${version}";
|
2016-11-09 11:05:02 +00:00
|
|
|
in buildPythonApplication rec {
|
2020-03-29 10:34:50 +00:00
|
|
|
inherit pname version;
|
2013-09-23 20:33:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://christian.amsuess.com/tools/arandr/files/${name}.tar.gz";
|
2019-04-30 04:30:18 +00:00
|
|
|
sha256 = "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v";
|
2013-09-23 20:33:51 +00:00
|
|
|
};
|
|
|
|
|
2015-11-20 12:48:30 +00:00
|
|
|
patchPhase = ''
|
2013-09-23 20:33:51 +00:00
|
|
|
rm -rf data/po/*
|
|
|
|
'';
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-05-20 08:37:11 +00:00
|
|
|
# hook for gobject-introspection doesn't like strictDeps
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/56943
|
|
|
|
strictDeps = false;
|
2019-04-30 04:30:18 +00:00
|
|
|
|
2019-05-20 08:37:11 +00:00
|
|
|
buildInputs = [ docutils gsettings-desktop-schemas gtk3 ];
|
|
|
|
nativeBuildInputs = [ gobject-introspection wrapGAppsHook ];
|
|
|
|
propagatedBuildInputs = [ xrandr pygobject3 ];
|
2013-09-23 20:33:51 +00:00
|
|
|
|
|
|
|
meta = {
|
2021-08-22 13:35:41 +00:00
|
|
|
homepage = "https://christian.amsuess.com/tools/arandr/";
|
2013-09-23 20:33:51 +00:00
|
|
|
description = "A simple visual front end for XRandR";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = [ lib.maintainers.domenkozar ];
|
2013-09-23 20:33:51 +00:00
|
|
|
};
|
|
|
|
}
|