From a75e8c45996826d8bc40bb9bd11c9aeb6c8ae1a0 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 17 Nov 2024 08:30:41 -0500 Subject: [PATCH] nihstro: init at 0-unstable-2024-05-05 (#356377) (cherry picked from commit 5290f1e9c8a1d2e55ce764899d086b3eb3c07657) --- pkgs/by-name/ni/nihstro/package.nix | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/by-name/ni/nihstro/package.nix diff --git a/pkgs/by-name/ni/nihstro/package.nix b/pkgs/by-name/ni/nihstro/package.nix new file mode 100644 index 000000000000..d6e962f799e8 --- /dev/null +++ b/pkgs/by-name/ni/nihstro/package.nix @@ -0,0 +1,47 @@ +{ + lib, + stdenv, + boost, + cmake, + fetchFromGitHub, + ninja, + unstableGitUpdater, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "nihstro"; + version = "0-unstable-2024-05-05"; + + src = fetchFromGitHub { + owner = "neobrain"; + repo = "nihstro"; + rev = "f4d8659decbfe5d234f04134b5002b82dc515a44"; + hash = "sha256-ZHgWyZFW7t2VTibH7WeuU8+I12bb95I9NcHI5s4U3VU="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + cmake + ninja + ]; + + buildInputs = [ boost ]; + + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; + + passthru = { + updateScript = unstableGitUpdater { + hardcodeZeroVersion = true; + }; + }; + + meta = { + description = "3DS shader assembler and disassembler"; + homepage = "https://github.com/neobrain/nihstro"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ getchoo ]; + mainProgram = "nihstro-assemble"; + platforms = lib.platforms.unix ++ lib.platforms.windows; + }; +})