13 stdenv.mkDerivation (finalAttrs: {
14 pname = "quake-injector";
17 src = fetchFromGitHub {
19 repo = "QuakeInjector";
20 rev = "refs/tags/alpha${finalAttrs.version}";
21 hash = "sha256-bbvLp5/Grg+mXBuV5aJCMOSjFp1+ukZS+AivcbhBxHU=";
31 mitmCache = gradle.fetchDeps {
32 inherit (finalAttrs) pname;
36 __darwinAllowLocalNetworking = true;
43 mkdir -p $out/{bin,share/quake-injector}
44 cp build/libs/QuakeInjector.jar $out/share/quake-injector
46 mkdir -p $out/share/icons/hicolor/256x256/apps
47 cp src/main/resources/Inject2_256.png $out/share/icons/hicolor/256x256/apps/quake-injector.png
49 makeWrapper ${jre}/bin/java $out/bin/quake-injector \
50 --add-flags "-jar $out/share/quake-injector/QuakeInjector.jar"
57 name = "quake-injector";
58 exec = finalAttrs.meta.mainProgram;
59 icon = "quake-injector";
60 comment = finalAttrs.meta.description;
61 desktopName = "Quake Injector";
62 categories = [ "Game" ];
67 description = "Download, install and play quake singleplayer maps from the quaddicted.com archive";
68 homepage = "https://github.com/hrehfeld/QuakeInjector";
69 changelog = "https://github.com/hrehfeld/QuakeInjector/releases";
70 license = lib.licenses.gpl3Plus;
71 maintainers = with lib.maintainers; [ theobori ];
72 mainProgram = "quake-injector";
73 platforms = jdk.meta.platforms;
74 sourceProvenance = with lib.sourceTypes; [
76 binaryBytecode # mitm cache