mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 01:24:47 +00:00
Merge pull request #252088 from dschrempf/vimiv-qt-fix-wayland
vimiv-qt: fix wayland and mainProgram
This commit is contained in:
commit
17baeb853c
@ -2,6 +2,7 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, python3
|
, python3
|
||||||
, qt5
|
, qt5
|
||||||
|
, stdenv
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -18,7 +19,9 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles qt5.wrapQtAppsHook python3.pkgs.setuptools ];
|
nativeBuildInputs = [ installShellFiles qt5.wrapQtAppsHook python3.pkgs.setuptools ];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [ pyqt5 py3exiv2 qt5.qtsvg ];
|
propagatedBuildInputs = with python3.pkgs; [ pyqt5 py3exiv2 ];
|
||||||
|
|
||||||
|
buildInputs = [ qt5.qtsvg ] ++ lib.optionals stdenv.isLinux [ qt5.qtwayland ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm644 misc/vimiv.desktop $out/share/applications/vimiv.desktop
|
install -Dm644 misc/vimiv.desktop $out/share/applications/vimiv.desktop
|
||||||
@ -43,6 +46,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
homepage = "https://github.com/karlch/vimiv-qt";
|
homepage = "https://github.com/karlch/vimiv-qt";
|
||||||
maintainers = with maintainers; [ dschrempf ];
|
maintainers = with maintainers; [ dschrempf ];
|
||||||
|
mainProgram = "vimiv";
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user