nixpkgs/pkgs/by-name/ue/ueberzugpp/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

97 lines
1.9 KiB
Nix
Raw Normal View History

2023-05-08 14:10:04 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, openssl
, zeromq
, cppzmq
, tbb_2021_11
2023-05-08 14:10:04 +00:00
, spdlog
, libsodium
, fmt
, vips
, nlohmann_json
, libsixel
, microsoft-gsl
2023-05-21 21:50:25 +00:00
, chafa
2024-02-24 22:50:16 +00:00
, cli11
, libexif
, range-v3
2023-05-26 11:52:47 +00:00
, enableOpencv ? stdenv.isLinux
2023-05-21 21:50:25 +00:00
, opencv
2023-07-19 10:13:41 +00:00
, enableWayland ? stdenv.isLinux
2023-05-26 11:52:47 +00:00
, extra-cmake-modules
, wayland
, wayland-protocols
, enableX11 ? stdenv.isLinux
2023-05-21 21:50:25 +00:00
, xorg
2023-05-08 14:10:04 +00:00
}:
stdenv.mkDerivation rec {
pname = "ueberzugpp";
2024-06-09 15:32:11 +00:00
version = "2.9.6";
2023-05-08 14:10:04 +00:00
src = fetchFromGitHub {
owner = "jstkdng";
repo = "ueberzugpp";
rev = "v${version}";
2024-06-09 15:32:11 +00:00
hash = "sha256-qo9Rwnx6Oh8DRcCBUMS3JVdNyx1iZSB2Z1qfptUoPFQ=";
2023-05-08 14:10:04 +00:00
};
2023-05-26 11:52:47 +00:00
strictDeps = true;
2023-05-08 14:10:04 +00:00
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
openssl
zeromq
cppzmq
tbb_2021_11
2023-05-08 14:10:04 +00:00
spdlog
libsodium
fmt
vips
nlohmann_json
libsixel
microsoft-gsl
2023-05-21 21:50:25 +00:00
chafa
2023-05-26 11:52:47 +00:00
cli11
2024-02-24 22:50:16 +00:00
libexif
range-v3
2023-05-26 11:52:47 +00:00
] ++ lib.optionals enableOpencv [
2023-05-08 14:10:04 +00:00
opencv
2023-07-19 10:13:41 +00:00
] ++ lib.optionals enableWayland [
2023-05-26 11:52:47 +00:00
extra-cmake-modules
wayland
wayland-protocols
] ++ lib.optionals enableX11 [
2023-05-08 14:10:04 +00:00
xorg.libX11
xorg.xcbutilimage
];
2023-05-26 11:52:47 +00:00
cmakeFlags = lib.optionals (!enableOpencv) [
2023-05-08 14:10:04 +00:00
"-DENABLE_OPENCV=OFF"
2023-07-19 10:13:41 +00:00
] ++ lib.optionals enableWayland [
"-DENABLE_WAYLAND=ON"
2023-05-26 11:52:47 +00:00
] ++ lib.optionals (!enableX11) [
2023-05-08 14:10:04 +00:00
"-DENABLE_X11=OFF"
];
2023-05-19 12:04:51 +00:00
# error: aligned deallocation function of type 'void (void *, std::align_val_t) noexcept' is only available on macOS 10.14 or newer
preBuild = lib.optionalString (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11.0") ''
export MACOSX_DEPLOYMENT_TARGET=10.14
'';
2023-05-08 14:10:04 +00:00
meta = with lib; {
description = "Drop in replacement for ueberzug written in C++";
homepage = "https://github.com/jstkdng/ueberzugpp";
license = licenses.gpl3Plus;
2023-05-19 12:04:51 +00:00
maintainers = with maintainers; [ aleksana wegank ];
2023-05-08 14:10:04 +00:00
platforms = platforms.unix;
};
}