From af2bc45ef1238539143a6a40631bcee2fd8e1151 Mon Sep 17 00:00:00 2001 From: qubitnano <146656568+qubitnano@users.noreply.github.com> Date: Sat, 18 May 2024 22:23:00 -0400 Subject: [PATCH] n64recomp: init at 0-unstable-2024-09-15 --- pkgs/by-name/n6/n64recomp/package.nix | 49 +++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/n6/n64recomp/package.nix diff --git a/pkgs/by-name/n6/n64recomp/package.nix b/pkgs/by-name/n6/n64recomp/package.nix new file mode 100644 index 0000000000000..31f9e66ff5a25 --- /dev/null +++ b/pkgs/by-name/n6/n64recomp/package.nix @@ -0,0 +1,49 @@ +{ + lib, + stdenv, + cmake, + fetchFromGitHub, + unstableGitUpdater, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "n64recomp"; + version = "0-unstable-2024-09-15"; + + src = fetchFromGitHub { + owner = "N64Recomp"; + repo = "N64Recomp"; + rev = "d33d38161798167929b114c2b0fd445f9670e10a"; + hash = "sha256-IFGWQ57kHWxqmeHwX0vg6NoTvTqwr4S5/lyvB9I5Fi4="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ cmake ]; + + installPhase = '' + runHook preInstall + + install -Dm755 -t $out/bin {N64Recomp,RSPRecomp} + install -Dm644 -t $out/share/licenses/${finalAttrs.pname} ../LICENSE + + runHook postInstall + ''; + + passthru.updateScript = unstableGitUpdater { }; + + meta = { + description = "Tool to statically recompile N64 games into native executables"; + homepage = "https://github.com/N64Recomp/N64Recomp"; + license = with lib.licenses; [ + # N64Recomp + mit + + # reverse engineering + unfree + ]; + maintainers = with lib.maintainers; [ qubitnano ]; + mainProgram = "N64Recomp"; + platforms = lib.platforms.linux; + hydraPlatforms = [ ]; + }; +})