Skip to content

Commit

Permalink
qqsp: init at 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMolotov committed Dec 17, 2024
1 parent 8e87515 commit 9e77c97
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions pkgs/by-name/qq/qqsp/package.nix
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 ];
};
})

0 comments on commit 9e77c97

Please sign in to comment.