at master 39 lines 781 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 pkg-config, 7 SDL2, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "lambda-delta"; 12 version = "0.98.3"; 13 14 src = fetchFromGitHub { 15 owner = "dseagrav"; 16 repo = "ld"; 17 rev = version; 18 sha256 = "02m43fj9dzc1i1jl01qwnhjiq1rh03jw1xq59sx2h3bhn7dk941x"; 19 }; 20 21 nativeBuildInputs = [ 22 autoreconfHook 23 pkg-config 24 ]; 25 buildInputs = [ SDL2 ]; 26 env = lib.optionalAttrs stdenv.cc.isClang { 27 NIX_CFLAGS_COMPILE = "-std=c89"; 28 }; 29 30 configureFlags = [ "--without-SDL1" ]; 31 32 meta = with lib; { 33 description = "LMI (Lambda Lisp Machine) emulator"; 34 homepage = "https://github.com/dseagrav/ld"; 35 license = licenses.gpl2; 36 maintainers = with maintainers; [ siraben ]; 37 platforms = platforms.unix; 38 }; 39}