imv: enable LIBNSGIF and LIBJPEG backends
This commit is contained in:
parent
e9f8c385c0
commit
1320526747
@ -1,8 +1,23 @@
|
|||||||
{ stdenv, fetchFromGitHub
|
{ asciidoc
|
||||||
, freeimage, fontconfig, pkgconfig
|
, cmocka
|
||||||
, asciidoc, docbook_xsl, libxslt, cmocka
|
, docbook_xsl
|
||||||
, librsvg, pango, libxkbcommon, wayland
|
, fetchFromGitHub
|
||||||
, libGLU, icu
|
, fontconfig
|
||||||
|
, freeimage
|
||||||
|
, icu
|
||||||
|
, libGLU
|
||||||
|
, libheif
|
||||||
|
, libjpeg_turbo
|
||||||
|
, libpng
|
||||||
|
, librsvg
|
||||||
|
, libtiff
|
||||||
|
, libxkbcommon
|
||||||
|
, libxslt
|
||||||
|
, netsurf
|
||||||
|
, pango
|
||||||
|
, pkgconfig
|
||||||
|
, stdenv
|
||||||
|
, wayland
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -10,37 +25,31 @@ stdenv.mkDerivation rec {
|
|||||||
version = "4.1.0";
|
version = "4.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "eXeC64";
|
owner = "eXeC64";
|
||||||
repo = "imv";
|
repo = "imv";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0gk8g178i961nn3bls75a8qpv6wvfvav6hd9lxca1skaikd33zdx";
|
sha256 = "0gk8g178i961nn3bls75a8qpv6wvfvav6hd9lxca1skaikd33zdx";
|
||||||
};
|
};
|
||||||
|
|
||||||
preBuild = ''
|
nativeBuildInputs = [ asciidoc cmocka docbook_xsl libxslt ];
|
||||||
# Version is 4.0.1, but Makefile was not updated
|
|
||||||
sed -i 's/echo v4\.0\.0/echo v4.0.1/' Makefile
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
asciidoc
|
|
||||||
cmocka
|
|
||||||
docbook_xsl
|
|
||||||
libxslt
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
freeimage
|
freeimage
|
||||||
|
icu
|
||||||
libGLU
|
libGLU
|
||||||
|
libjpeg_turbo
|
||||||
librsvg
|
librsvg
|
||||||
libxkbcommon
|
libxkbcommon
|
||||||
|
netsurf.libnsgif
|
||||||
pango
|
pango
|
||||||
pkgconfig
|
pkgconfig
|
||||||
wayland
|
wayland
|
||||||
icu
|
|
||||||
];
|
];
|
||||||
|
|
||||||
installFlags = [ "PREFIX=$(out)" "CONFIGPREFIX=$(out)/etc" ];
|
installFlags = [ "PREFIX=$(out)" "CONFIGPREFIX=$(out)/etc" ];
|
||||||
|
|
||||||
|
makeFlags = [ "BACKEND_LIBJPEG=yes" "BACKEND_LIBNSGIF=yes" ];
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
# The `bin/imv` script assumes imv-wayland or imv-x11 in PATH,
|
# The `bin/imv` script assumes imv-wayland or imv-x11 in PATH,
|
||||||
# so we have to fix those to the binaries we installed into the /nix/store
|
# so we have to fix those to the binaries we installed into the /nix/store
|
||||||
@ -53,9 +62,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A command line image viewer for tiling window managers";
|
description = "A command line image viewer for tiling window managers";
|
||||||
homepage = "https://github.com/eXeC64/imv";
|
homepage = "https://github.com/eXeC64/imv";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ rnhmjoj markus1189 ];
|
maintainers = with maintainers; [ rnhmjoj markus1189 ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user