vimiv-qt: init at 0.8.0
untabify fix maintainer fix maintainer-list don't use expression for owner (but why did it not work?) space before operator Co-authored-by: Sandro <sandro.jaeckel@gmail.com> no quotation marks Co-authored-by: Sandro <sandro.jaeckel@gmail.com> reduce comment Co-authored-by: Sandro <sandro.jaeckel@gmail.com> quotation marks and for loop in custom post install script Co-authored-by: Sandro <sandro.jaeckel@gmail.com> python38Packages Co-authored-by: Sandro <sandro.jaeckel@gmail.com> don't bring python39 into scope Co-authored-by: Sandro <sandro.jaeckel@gmail.com> formatting Co-authored-by: Sandro <sandro.jaeckel@gmail.com> description rm dschrempf for separate commit use qt5 prefix installShellFiles python39Packages -> python3 share installShellFiles
This commit is contained in:
parent
1624ae8a96
commit
4b1a7d1498
49
pkgs/applications/graphics/vimiv-qt/default.nix
Normal file
49
pkgs/applications/graphics/vimiv-qt/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
, qt5
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "vimiv-qt";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "karlch";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1pj3gak7nxkw9r9m71zsfvcaq8dk9crbk5rz4n7pravxkl5hs2bg";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles qt5.wrapQtAppsHook python3.pkgs.setuptools ];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [ pyqt5 py3exiv2 qt5.qtsvg ];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 misc/vimiv.desktop $out/share/applications/vimiv.desktop
|
||||
install -Dm644 misc/org.karlch.vimiv.qt.metainfo.xml $out/metainfo/org.karlch.vimiv.qt.metainfo.xml
|
||||
install -Dm644 LICENSE $out/licenses/vimiv/LICENSE
|
||||
install -Dm644 icons/vimiv.svg $out/icons/hicolor/scalable/apps/vimiv.svg
|
||||
installManPage misc/vimiv.1
|
||||
|
||||
for i in 16 32 64 128 256 512; do
|
||||
install -Dm644 icons/vimiv_''${i}x''${i}.png $out/icons/hicolor/''${i}x''${i}/apps/vimiv.png
|
||||
done
|
||||
'';
|
||||
|
||||
# Vimiv has to be wrapped manually because it is a non-ELF executable.
|
||||
dontWrapQtApps = true;
|
||||
preFixup = ''
|
||||
wrapQtApp $out/bin/vimiv
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Image viewer with Vim-like keybindings (Qt port)";
|
||||
license = licenses.gpl3Plus;
|
||||
homepage = "https://github.com/karlch/vimiv-qt";
|
||||
maintainers = with maintainers; [ dschrempf ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -25588,6 +25588,8 @@ in
|
||||
|
||||
vimiv = callPackage ../applications/graphics/vimiv { };
|
||||
|
||||
vimiv-qt = callPackage ../applications/graphics/vimiv-qt { };
|
||||
|
||||
macvim = callPackage ../applications/editors/vim/macvim-configurable.nix { stdenv = clangStdenv; };
|
||||
|
||||
vimHugeX = vim_configurable;
|
||||
|
Loading…
Reference in New Issue
Block a user