Skip to content

Commit

Permalink
jackbox-utility: init at 1.3.7+1
Browse files Browse the repository at this point in the history
  • Loading branch information
jpeterburs committed Apr 10, 2024
1 parent 4833ede commit beacd33
Showing 1 changed file with 52 additions and 0 deletions.
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}
chmod +x $out/bin/${pname}
runHook postInstall
'';

postInstall = ''
cat << EOF > $out/share/applications/${pname}.desktop
[Desktop Entry]
Version=${version}
Type=Application
Name=JackboxUtility
Exec=$out/bin/${pname}
Icon=$out/bin/data/flutter_assets/assets/logo.png
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 ";
homepage = "https://github.com/JackboxUtility/JackboxUtility";
license = licenses.gpl3;
maintainers = with maintainers; [ jpeterburs ];
mainProgram = "jackbox-utility";
};
}

0 comments on commit beacd33

Please sign in to comment.