nixpkgs/pkgs/applications/graphics/imv/default.nix

82 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
, meson
, ninja
, inih
2018-09-03 05:22:32 -07:00
}:
2015-11-12 10:40:00 -08:00
stdenv.mkDerivation rec {
pname = "imv";
version = "4.2.0";
2015-11-12 10:40:00 -08:00
2018-09-03 05:22:32 -07:00
src = fetchFromGitHub {
owner = "eXeC64";
repo = "imv";
rev = "v${version}";
sha256 = "07pcpppmfvvj0czfvp1cyq03ha0jdj4whl13lzvw37q3vpxs5qqh";
2015-11-12 10:40:00 -08:00
};
nativeBuildInputs = [
asciidoc
cmocka
docbook_xsl
libxslt
meson
ninja
];
2019-09-06 01:01:47 -07:00
2018-09-03 05:22:32 -07:00
buildInputs = [
2019-09-06 01:01:47 -07:00
freeimage
icu
2019-09-06 01:01:47 -07:00
libGLU
libjpeg_turbo
2019-09-06 01:01:47 -07:00
librsvg
libxkbcommon
netsurf.libnsgif
2019-09-06 01:01:47 -07:00
pango
pkgconfig
wayland
inih
libtiff
libheif
libpng
2018-09-03 05:22:32 -07:00
];
2015-11-12 10:40:00 -08:00
2019-09-06 01:01:47 -07: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
2021-01-04 05:41:45 -08:00
substituteInPlace "$out/bin/imv" \
--replace "imv-wayland" "$out/bin/imv-wayland" \
--replace "imv-x11" "$out/bin/imv-x11"
2019-09-06 01:01:47 -07:00
'';
2019-07-18 23:40:54 -07:00
doCheck = true;
2015-11-12 10:40:00 -08: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-18 23:40:54 -07:00
maintainers = with maintainers; [ rnhmjoj markus1189 ];
platforms = platforms.all;
2015-11-12 10:40:00 -08:00
};
}