-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e87515
commit 9e77c97
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitHub, | ||
adwaita-qt, | ||
libadwaita, | ||
adw-gtk3, | ||
gst_all_1, | ||
gnome-themes-extra, | ||
librsvg, | ||
fetchgit, | ||
qt5, | ||
}: | ||
stdenv.mkDerivation (finalAttrs: { | ||
name = "qqsp"; | ||
version = "1.9"; | ||
src = fetchFromGitHub { | ||
owner = "Sonnix1"; | ||
repo = "Qqsp"; | ||
tag = "v${finalAttrs.version}"; | ||
hash = "sha256-eDgoa+/dcJ8Ti+YLHgKUKus0+zRrFEuJ19wUpbFpcBU="; | ||
}; | ||
buildInputs = [ | ||
adwaita-qt | ||
libadwaita | ||
adw-gtk3 | ||
gnome-themes-extra | ||
gst_all_1.gst-plugins-good | ||
gst_all_1.gst-plugins-ugly | ||
qt5.qtmultimedia | ||
qt5.qtwebengine | ||
]; | ||
nativeBuildInputs = [ | ||
qt5.qmake | ||
qt5.wrapQtAppsHook | ||
librsvg | ||
]; | ||
installPhase = '' | ||
install -D Qqsp $out/bin/qqsp | ||
install -D $src/icons/qsp-logo-vector.svg $out/icons/scalable/apps/qsp.svg | ||
install -D $src/Qqsp.desktop $out/share/applications/Qqsp.desktop | ||
install -D $src/qsp.mime $out/share/mime/packages/qsp.xml | ||
for i in 16 24 32 48 64 96 128 256 512; do | ||
mkdir -p $out/share/icons/''${i}x$i/apps | ||
rsvg-convert -w $i -h $i -f png $src/icons/qsp-logo-vector.svg -o $out/share/icons/''${i}x$i/apps/qsp.png | ||
done | ||
''; | ||
meta = with lib; { | ||
description = "Qt Quest Soft Player"; | ||
license = lib.licenses.mit; | ||
homepage = "https://gitlab.com/Sonnix1/Qqsp"; | ||
platforms = platforms.unix ++ platforms.windows; | ||
mainProgram = "qqsp"; | ||
maintainers = [ lib.maintainers.JohnMolotov ]; | ||
}; | ||
}) |