1{
2 lib,
3 stdenv,
4 boost,
5 cmake,
6 fetchFromGitHub,
7 ninja,
8 unstableGitUpdater,
9}:
10
11stdenv.mkDerivation (finalAttrs: {
12 pname = "nihstro";
13 version = "0-unstable-2024-05-05";
14
15 src = fetchFromGitHub {
16 owner = "neobrain";
17 repo = "nihstro";
18 rev = "f4d8659decbfe5d234f04134b5002b82dc515a44";
19 hash = "sha256-ZHgWyZFW7t2VTibH7WeuU8+I12bb95I9NcHI5s4U3VU=";
20 };
21
22 strictDeps = true;
23
24 nativeBuildInputs = [
25 cmake
26 ninja
27 ];
28
29 buildInputs = [ boost ];
30
31 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
32
33 passthru = {
34 updateScript = unstableGitUpdater {
35 hardcodeZeroVersion = true;
36 };
37 };
38
39 meta = {
40 description = "3DS shader assembler and disassembler";
41 homepage = "https://github.com/neobrain/nihstro";
42 license = lib.licenses.bsd3;
43 maintainers = with lib.maintainers; [ getchoo ];
44 mainProgram = "nihstro-assemble";
45 platforms = lib.platforms.unix ++ lib.platforms.windows;
46 };
47})