Merge pull request #230692 from Aleksanaa/ueberzugpp

This commit is contained in:
figsoda 2023-05-08 16:19:24 -04:00 committed by GitHub
commit b303d98840
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1,74 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, cli11
, openssl
, zeromq
, cppzmq
, tbb_2021_8
, spdlog
, libsodium
, fmt
, vips
, nlohmann_json
, libsixel
, opencv
, xorg
, withOpencv ? true
, withX11 ? true
}:
stdenv.mkDerivation rec {
pname = "ueberzugpp";
version = "2.8.0";
src = fetchFromGitHub {
owner = "jstkdng";
repo = "ueberzugpp";
rev = "v${version}";
hash = "sha256-PTI+jIsXq4yh8TBAT1p1CLbBMDW1U323WgPoASz2pwA=";
};
nativeBuildInputs = [
cmake
pkg-config
cli11
];
buildInputs = [
openssl
zeromq
cppzmq
tbb_2021_8
spdlog
libsodium
fmt
vips
nlohmann_json
libsixel
] ++ lib.optionals withOpencv [
opencv
] ++ lib.optionals withX11 [
xorg.libX11
xorg.xcbutilimage
];
cmakeFlags = lib.optionals (!withOpencv) [
"-DENABLE_OPENCV=OFF"
] ++ lib.optionals (!withX11) [
"-DENABLE_X11=OFF"
];
meta = with lib; {
description = "Drop in replacement for ueberzug written in C++";
homepage = "https://github.com/jstkdng/ueberzugpp";
license = licenses.gpl3Plus;
mainProgram = "ueberzug";
maintainers = with maintainers; [ aleksana ];
platforms = platforms.unix;
broken = stdenv.isDarwin && stdenv.isx86_64;
};
}

View file

@ -34485,6 +34485,8 @@ with pkgs;
ueberzug = with python3Packages; toPythonApplication ueberzug; ueberzug = with python3Packages; toPythonApplication ueberzug;
ueberzugpp = callPackage ../tools/graphics/ueberzugpp { };
uefi-run = callPackage ../tools/virtualization/uefi-run { }; uefi-run = callPackage ../tools/virtualization/uefi-run { };
uhhyou.lv2 = callPackage ../applications/audio/uhhyou.lv2 { }; uhhyou.lv2 = callPackage ../applications/audio/uhhyou.lv2 { };