diff --git a/pkgs/by-name/qq/qqsp/package.nix b/pkgs/by-name/qq/qqsp/package.nix new file mode 100644 index 00000000000000..9f6f8c660a7338 --- /dev/null +++ b/pkgs/by-name/qq/qqsp/package.nix @@ -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 ]; + }; +})