Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qqsp: init at 1.9, qsp: init at 0-unstable-2024-11-27 #363124

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10792,6 +10792,12 @@
githubId = 2576152;
name = "John M. Harris, Jr.";
};
JohnMolotov = {
name = "John Molotov";
email = "[email protected]";
github = "JohnMolotov";
githubId = 171455312;
};
johnpyp = {
name = "John Paul Penaloza";
email = "[email protected]";
Expand Down
59 changes: 59 additions & 0 deletions pkgs/by-name/qq/qqsp/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
lib,
stdenv,
fetchFromGitHub,
adwaita-qt,
libadwaita,
adw-gtk3,
gst_all_1,
gnome-themes-extra,
librsvg,
qt5,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "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
JohnMolotov marked this conversation as resolved.
Show resolved Hide resolved
qt5.qtbase
];
nativeBuildInputs = [
qt5.qmake
qt5.qtbase
qt5.qtmultimedia
qt5.qtwebengine
Comment on lines +35 to +37
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to duplicate these

Suggested change
qt5.qtbase
qt5.qtmultimedia
qt5.qtwebengine

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If they are removed then the package fails to build when strictDeps is enabled

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 = {
description = "Qt Quest Soft Player";
license = lib.licenses.mit;
JohnMolotov marked this conversation as resolved.
Show resolved Hide resolved
homepage = "https://gitlab.com/Sonnix1/Qqsp";
platforms = lib.platforms.unix ++ lib.platforms.windows;
mainProgram = "Qqsp";
maintainers = [ lib.maintainers.JohnMolotov ];
};
})
31 changes: 31 additions & 0 deletions pkgs/by-name/qs/qsp/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
oniguruma,
}:
stdenv.mkDerivation {
name = "qsp";
version = "0-unstable-2024-11-27";
src = fetchFromGitHub {
owner = "QSPFoundation";
repo = "qsp";
rev = "f6ede7f8756e49604de056fcbdfe99fa4abd4812";
sha256 = "MoNam2IFnLpk02tKp+lkl4l+mBiaWNPhFc3/n4zUHcw=";
JohnMolotov marked this conversation as resolved.
Show resolved Hide resolved
};
buildInputs = [ oniguruma ];
nativeBuildInputs = [
cmake
pkg-config
];
cmakeFlags = [ (lib.cmakeBool "USE_INSTALLED_ONIGURUMA" true) ];
meta = {
description = "QuestSoft game engine";
JohnMolotov marked this conversation as resolved.
Show resolved Hide resolved
homepage = "https://qsp.org/";
platforms = lib.platforms.unix;
license = lib.licenses.lgpl21Plus;
maintainers = [ lib.maintainers.JohnMolotov ];
};
}
Loading