Starting with 18.2.0, one of ueberzug's headers #errors if __linux__
isn't defined [1]. Set meta.platforms to reflect this.
[1]: c7c151aec4/ueberzug/X/python.h (L4-L6)
63 lines
1.0 KiB
Nix
63 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
attrs,
|
|
buildPythonPackage,
|
|
docopt,
|
|
fetchPypi,
|
|
libX11,
|
|
libXext,
|
|
libXres,
|
|
meson-python,
|
|
meson,
|
|
pillow,
|
|
pkg-config,
|
|
psutil,
|
|
xlib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ueberzug";
|
|
version = "18.3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-1Lk4E5YwEq2mUnYbIWDhzz9/CCwfXMJ11/TtJ44ugOk=";
|
|
};
|
|
|
|
build-system = [
|
|
meson
|
|
meson-python
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
libX11
|
|
libXres
|
|
libXext
|
|
];
|
|
|
|
dependencies = [
|
|
attrs
|
|
docopt
|
|
pillow
|
|
psutil
|
|
xlib
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "ueberzug" ];
|
|
|
|
meta = {
|
|
description = "Alternative for w3mimgdisplay";
|
|
homepage = "https://github.com/ueber-devel/ueberzug";
|
|
changelog = "https://github.com/ueber-devel/ueberzug/releases/tag/${version}";
|
|
license = lib.licenses.gpl3Only;
|
|
mainProgram = "ueberzug";
|
|
maintainers = with lib.maintainers; [ Br1ght0ne ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|