qimgv: init at 0.8.9
A few notes: * I only run Linux, so that is what I set `meta.platforms` to. * Video support is broken in both Nix and Arch builds.
This commit is contained in:
parent
c1e2642da6
commit
e2a0073e2d
49
pkgs/applications/graphics/qimgv/default.nix
Normal file
49
pkgs/applications/graphics/qimgv/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ mkDerivation, fetchFromGitHub, lib
|
||||
, pkgconfig, cmake
|
||||
, exiv2, qtbase, qtimageformats, qtsvg
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "qimgv";
|
||||
version = "0.8.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "easymodo";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0cmya06j466v0pirhxbzbj1vbz0346y7rbc1gbv4n9xcp6c6bln6";
|
||||
};
|
||||
|
||||
cmakeFlags = [
|
||||
# Video support appears to be broken; the following gets printed upon
|
||||
# attempting to view an mp4, webm, or mkv (and probably all video formats):
|
||||
#
|
||||
# [VideoPlayerInitProxy] Error - could not load player library
|
||||
# "qimgv_player_mpv"
|
||||
#
|
||||
# GIFs are unaffected. If this ever gets addressed, all that is necessary is
|
||||
# to add `mpv` to the arguments list and to `buildInputs`, and to remove
|
||||
# `cmakeFlags`.
|
||||
"-DVIDEO_SUPPORT=OFF"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkgconfig
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
exiv2
|
||||
qtbase
|
||||
qtimageformats
|
||||
qtsvg
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Qt5 image viewer with optional video support";
|
||||
homepage = "https://github.com/easymodo/qimgv";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ cole-h ];
|
||||
};
|
||||
}
|
@ -21191,6 +21191,8 @@ in
|
||||
|
||||
qjackctl = libsForQt5.callPackage ../applications/audio/qjackctl { };
|
||||
|
||||
qimgv = libsForQt5.callPackage ../applications/graphics/qimgv { };
|
||||
|
||||
qlandkartegt = libsForQt5.callPackage ../applications/misc/qlandkartegt {};
|
||||
|
||||
garmindev = callPackage ../applications/misc/qlandkartegt/garmindev.nix {};
|
||||
|
Loading…
Reference in New Issue
Block a user