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

jackbox-utility: init at 1.3.7+1 #303197

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 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 @@ -9647,6 +9647,12 @@
githubId = 20675;
name = "Joël Perras";
};
jpeterburs = {
email = "[email protected]";
github = "jpeterburs";
githubId = 39838608;
name = "Jonas Peterburs";
};
jpetrucciani = {
email = "[email protected]";
github = "jpetrucciani";
Expand Down
52 changes: 52 additions & 0 deletions pkgs/by-name/ja/jackbox-utility/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{ lib
, stdenvNoCC
, fetchurl
, unzip
}:

stdenvNoCC.mkDerivation rec {
pname = "jackbox-utility";
version = "1.3.7+1";

src = fetchurl {
url = "https://github.com/JackboxUtility/JackboxUtility/releases/download/${version}/JackboxUtility_Linux.zip";
hash = "sha256-fPLcbVqZ5rXkYRmBsOacwuJaIK47/JZMqsJRQTTsZRM=";
};

dontUnpack = true;

nativeBuildInputs = [ unzip ];

installPhase = ''
runHook preInstall

mkdir -p $out/bin $out/share/applications
unzip -d $out/bin $src
mv $out/bin/JackboxUtility $out/bin/${pname}
jpeterburs marked this conversation as resolved.
Show resolved Hide resolved
chmod +x $out/bin/${pname}

runHook postInstall
'';

postInstall = ''
cat << EOF > $out/share/applications/${pname}.desktop
jpeterburs marked this conversation as resolved.
Show resolved Hide resolved
[Desktop Entry]
Version=${version}
Type=Application
Name=JackboxUtility
Exec=$out/bin/${pname}
Icon=$out/bin/data/flutter_assets/assets/logo.png
jpeterburs marked this conversation as resolved.
Show resolved Hide resolved
Terminal=false
Comment=An app to download patches and launch Jackbox games
EOF
chmod +x $out/share/applications/${pname}.desktop
'';

meta = with lib; {
description = "An app to download patches and launch Jackbox games ";
jpeterburs marked this conversation as resolved.
Show resolved Hide resolved
homepage = "https://github.com/JackboxUtility/JackboxUtility";
jpeterburs marked this conversation as resolved.
Show resolved Hide resolved
license = licenses.gpl3;
jpeterburs marked this conversation as resolved.
Show resolved Hide resolved
maintainers = with maintainers; [ jpeterburs ];
mainProgram = "jackbox-utility";
jpeterburs marked this conversation as resolved.
Show resolved Hide resolved
};
}