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
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
libsForQt5,
|
|
exiv2,
|
|
mpv,
|
|
opencv4,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "qimgv";
|
|
version = "1.0.3-unstable-2024-10-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "easymodo";
|
|
repo = "qimgv";
|
|
rev = "a4d475fae07847be7c106cb628fb97dad51ab920";
|
|
sha256 = "sha256-iURUJiPe8hbCnpaf6lk8OVSzVqrJKGab889yOic5yLI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
libsForQt5.wrapQtAppsHook
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DVIDEO_SUPPORT=ON"
|
|
];
|
|
|
|
buildInputs = [
|
|
exiv2
|
|
mpv
|
|
opencv4.cxxdev
|
|
libsForQt5.qtbase
|
|
libsForQt5.qtimageformats
|
|
libsForQt5.qtsvg
|
|
libsForQt5.qttools
|
|
];
|
|
|
|
postPatch = ''
|
|
sed -i "s@/usr/bin/mpv@${mpv}/bin/mpv@" \
|
|
qimgv/settings.cpp
|
|
'';
|
|
|
|
# Wrap the library path so it can see `libqimgv_player_mpv.so`, which is used
|
|
# to play video files within qimgv itself.
|
|
qtWrapperArgs = [
|
|
"--prefix LD_LIBRARY_PATH : ${placeholder "out"}/lib"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Qt5 image viewer with optional video support";
|
|
mainProgram = "qimgv";
|
|
homepage = "https://github.com/easymodo/qimgv";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ cole-h ];
|
|
};
|
|
}
|