nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 55 lines 1.3 kB view raw
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 postPatch = '' 23 # CMake 2.6 is deprecated and is no longer supported by CMake > 4 24 # inline of https://github.com/neobrain/nihstro/pull/71 25 substituteInPlace CMakeLists.txt \ 26 --replace-fail "cmake_minimum_required(VERSION 2.6)" \ 27 "cmake_minimum_required(VERSION 3.5)" 28 ''; 29 30 strictDeps = true; 31 32 nativeBuildInputs = [ 33 cmake 34 ninja 35 ]; 36 37 buildInputs = [ boost ]; 38 39 doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; 40 41 passthru = { 42 updateScript = unstableGitUpdater { 43 hardcodeZeroVersion = true; 44 }; 45 }; 46 47 meta = { 48 description = "3DS shader assembler and disassembler"; 49 homepage = "https://github.com/neobrain/nihstro"; 50 license = lib.licenses.bsd3; 51 maintainers = with lib.maintainers; [ getchoo ]; 52 mainProgram = "nihstro-assemble"; 53 platforms = lib.platforms.unix ++ lib.platforms.windows; 54 }; 55})