Merge pull request #115380 from siraben/trealla-init

trealla: init at 1.7.65

authored by Sandro and committed by GitHub ffd8ff10 a5979a4f

+50
+48
pkgs/development/interpreters/trealla/default.nix
··· 1 + { lib, stdenv, fetchFromGitHub, readline, openssl, withThread ? true, withSSL ? true, xxd }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "trealla"; 5 + version = "1.7.65"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "infradig"; 9 + repo = "trealla"; 10 + rev = "v${version}"; 11 + sha256 = "sha256-uCDACBwdiCeAwF6IZHz7s5pD83JXTP7jAQDjGld8tt0="; 12 + }; 13 + 14 + postPatch = '' 15 + substituteInPlace Makefile \ 16 + --replace '-I/usr/local/include' "" \ 17 + --replace '-L/usr/local/lib' "" \ 18 + --replace 'GIT_VERSION :=' 'GIT_VERSION ?=' 19 + ''; 20 + 21 + makeFlags = [ 22 + "GIT_VERSION=\"v${version}\"" 23 + (lib.optionalString withThread "THREADS=1") 24 + (lib.optionalString (!withSSL) "NOSSL=1") 25 + (lib.optionalString stdenv.isDarwin "NOLDLIBS=1") 26 + ]; 27 + 28 + nativeBuildInputs = [ xxd ]; 29 + buildInputs = [ readline openssl ]; 30 + 31 + installPhase = '' 32 + install -Dm755 -t $out/bin tpl 33 + ''; 34 + 35 + doCheck = true; 36 + preCheck = '' 37 + # Disable test 81 due to floating point error 38 + rm tests/issues/test081.expected tests/issues/test081.pl 39 + ''; 40 + 41 + meta = with lib; { 42 + description = "A compact, efficient Prolog interpreter written in ANSI C"; 43 + homepage = "https://github.com/infradig/trealla"; 44 + license = licenses.mit; 45 + maintainers = with maintainers; [ siraben ]; 46 + platforms = platforms.all; 47 + }; 48 + }
+2
pkgs/top-level/all-packages.nix
··· 11793 11793 11794 11794 tclreadline = callPackage ../development/interpreters/tclreadline { }; 11795 11795 11796 + trealla = callPackage ../development/interpreters/trealla { }; 11797 + 11796 11798 wasm = ocamlPackages.wasm; 11797 11799 11798 11800 proglodyte-wasm = callPackage ../development/interpreters/proglodyte-wasm { };