From 5742ce08dd674e76afdbee683563f48223620657 Mon Sep 17 00:00:00 2001 From: qubitnano <146656568+qubitnano@users.noreply.github.com> Date: Sat, 6 Jul 2024 16:12:14 -0400 Subject: [PATCH] z64decompress: init at 1.0.3-unstable-2023-12-21 --- pkgs/by-name/z6/z64decompress/package.nix | 46 +++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/z6/z64decompress/package.nix diff --git a/pkgs/by-name/z6/z64decompress/package.nix b/pkgs/by-name/z6/z64decompress/package.nix new file mode 100644 index 0000000000000..b32a05927b320 --- /dev/null +++ b/pkgs/by-name/z6/z64decompress/package.nix @@ -0,0 +1,46 @@ +{ + lib, + stdenv, + fetchFromGitHub, + unstableGitUpdater, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "z64decompress"; + version = "1.0.3-unstable-2023-12-21"; + + src = fetchFromGitHub { + owner = "z64tools"; + repo = "z64decompress"; + rev = "e2b3707271994a2a1b3afc6c3997a7cf6b479765"; + hash = "sha256-PHiOeEB9njJPsl6ScdoDVwJXGqOdIIJCZRbIXSieBIY="; + }; + + makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; + + installPhase = '' + runHook preInstall + + install -Dm755 -t $out/bin z64decompress + install -Dm644 -t $out/share/licenses/${finalAttrs.pname} LICENSE + + runHook postInstall + ''; + + passthru.updateScript = unstableGitUpdater { }; + + meta = { + description = "Zelda 64 rom decompressor"; + homepage = "https://github.com/z64tools/z64decompress"; + license = with lib.licenses; [ + gpl3Only + + # Reverse engineering + unfree + ]; + maintainers = with lib.maintainers; [ qubitnano ]; + mainProgram = "z64decompress"; + platforms = lib.platforms.linux; + hydraPlatforms = [ ]; + }; +})