3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/graphics/imv/default.nix

71 lines
1.4 KiB
Nix
Raw Normal View History

{ asciidoc
, cmocka
, docbook_xsl
, fetchFromGitHub
, fontconfig
, freeimage
, icu
, libGLU
, libheif
, libjpeg_turbo
, libpng
, librsvg
, libtiff
, libxkbcommon
, libxslt
, netsurf
, pango
, pkgconfig
, stdenv
, wayland
2018-09-03 13:22:32 +01:00
}:
2015-11-12 18:40:00 +00:00
stdenv.mkDerivation rec {
pname = "imv";
2020-01-09 20:00:18 +00:00
version = "4.1.0";
2015-11-12 18:40:00 +00:00
2018-09-03 13:22:32 +01:00
src = fetchFromGitHub {
owner = "eXeC64";
repo = "imv";
rev = "v${version}";
2020-06-01 09:59:41 +01:00
sha256 = "0gk8g178i961nn3bls75a8qpv6wvfvav6hd9lxca1skaikd33zdx";
2015-11-12 18:40:00 +00:00
};
nativeBuildInputs = [ asciidoc cmocka docbook_xsl libxslt ];
2019-09-06 09:01:47 +01:00
2018-09-03 13:22:32 +01:00
buildInputs = [
2019-09-06 09:01:47 +01:00
freeimage
icu
2019-09-06 09:01:47 +01:00
libGLU
libjpeg_turbo
2019-09-06 09:01:47 +01:00
librsvg
libxkbcommon
netsurf.libnsgif
2019-09-06 09:01:47 +01:00
pango
pkgconfig
wayland
2018-09-03 13:22:32 +01:00
];
2015-11-12 18:40:00 +00:00
2018-09-03 13:22:32 +01:00
installFlags = [ "PREFIX=$(out)" "CONFIGPREFIX=$(out)/etc" ];
2015-11-12 18:40:00 +00:00
makeFlags = [ "BACKEND_LIBJPEG=yes" "BACKEND_LIBNSGIF=yes" ];
2019-09-06 09:01:47 +01:00
postFixup = ''
# 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
sed -i "s|\bimv-wayland\b|$out/bin/imv-wayland|" $out/bin/imv
sed -i "s|\bimv-x11\b|$out/bin/imv-x11|" $out/bin/imv
'';
2019-07-19 07:40:54 +01:00
doCheck = true;
2015-11-12 18:40:00 +00:00
meta = with stdenv.lib; {
description = "A command line image viewer for tiling window managers";
homepage = "https://github.com/eXeC64/imv";
license = licenses.gpl2;
2019-07-19 07:40:54 +01:00
maintainers = with maintainers; [ rnhmjoj markus1189 ];
platforms = platforms.all;
2015-11-12 18:40:00 +00:00
};
}