Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
72 lines
1.3 KiB
Nix
72 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitLab,
|
|
python3Packages,
|
|
gobject-introspection,
|
|
gsettings-desktop-schemas,
|
|
gtk3,
|
|
wrapGAppsHook3,
|
|
xrandr,
|
|
nix-update-script,
|
|
}:
|
|
|
|
let
|
|
inherit (python3Packages) buildPythonApplication docutils pygobject3;
|
|
in
|
|
buildPythonApplication rec {
|
|
pname = "arandr";
|
|
version = "0.1.11";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "arandr";
|
|
repo = "arandr";
|
|
tag = version;
|
|
hash = "sha256-nQtfOKAnWKsy2DmvtRGJa4+Y9uGgX41BeHpd9m4d9YA=";
|
|
};
|
|
|
|
# patch to set mtime=0 on setup.py
|
|
patches = [ ./gzip-timestamp-fix.patch ];
|
|
patchFlags = [ "-p0" ];
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
docutils
|
|
gsettings-desktop-schemas
|
|
gtk3
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
xrandr
|
|
pygobject3
|
|
];
|
|
|
|
preBuild = ''
|
|
rm -rf data/po/*
|
|
'';
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--version-regex=(\\d.*)"
|
|
];
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://gitlab.com/arandr/arandr/-/blob/${src.tag}/ChangeLog";
|
|
description = "Simple visual front end for XRandR";
|
|
homepage = "https://christian.amsuess.com/tools/arandr/";
|
|
license = lib.licenses.gpl3;
|
|
mainProgram = "arandr";
|
|
maintainers = with lib.maintainers; [
|
|
gepbird
|
|
];
|
|
};
|
|
}
|