9 python3.pkgs.buildPythonApplication rec {
13 src = fetchFromGitHub {
17 sha256 = "sha256-28sk5qDVmrgXYX2wm5G8zv564vG6GwxNp+gjrFHCRfU=";
20 nativeBuildInputs = [ installShellFiles qt5.wrapQtAppsHook python3.pkgs.setuptools ];
22 propagatedBuildInputs = with python3.pkgs; [ pyqt5 py3exiv2 ];
24 buildInputs = [ qt5.qtsvg ] ++ lib.optionals stdenv.hostPlatform.isLinux [ qt5.qtwayland ];
27 install -Dm644 misc/vimiv.desktop $out/share/applications/vimiv.desktop
28 install -Dm644 misc/org.karlch.vimiv.qt.metainfo.xml $out/metainfo/org.karlch.vimiv.qt.metainfo.xml
29 install -Dm644 LICENSE $out/licenses/vimiv/LICENSE
30 install -Dm644 icons/vimiv.svg $out/icons/hicolor/scalable/apps/vimiv.svg
31 installManPage misc/vimiv.1
33 for i in 16 32 64 128 256 512; do
34 install -Dm644 icons/vimiv_''${i}x''${i}.png $out/icons/hicolor/''${i}x''${i}/apps/vimiv.png
38 # Vimiv has to be wrapped manually because it is a non-ELF executable.
39 dontWrapQtApps = true;
41 wrapQtApp $out/bin/vimiv
45 description = "Image viewer with Vim-like keybindings (Qt port)";
46 license = licenses.gpl3Plus;
47 homepage = "https://github.com/karlch/vimiv-qt";
48 maintainers = with maintainers; [ dschrempf ];
49 mainProgram = "vimiv";
50 platforms = platforms.all;