diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-11 22:09:43 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-09-13 10:43:38 +0000 |
commit | 92832ddf04b47a104de2c86bc87e30c965dd503b (patch) | |
tree | a3fcab314bd25dca0485de45b48c615805f511e6 /pkgs/development/interpreters/trealla/default.nix | |
parent | 2575a7ba454357e88cd0ae9f602c2fd7296126c2 (diff) |
trealla: migrate to by-name hierarchy
Diffstat (limited to 'pkgs/development/interpreters/trealla/default.nix')
-rw-r--r-- | pkgs/development/interpreters/trealla/default.nix | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/pkgs/development/interpreters/trealla/default.nix b/pkgs/development/interpreters/trealla/default.nix deleted file mode 100644 index 34b722d9dcf9..000000000000 --- a/pkgs/development/interpreters/trealla/default.nix +++ /dev/null @@ -1,94 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -, libffi -, openssl -, readline -, valgrind -, xxd -, gitUpdater -, checkLeaks ? false -, enableFFI ? true -, enableSSL ? true -, enableThreads ? true -, lineEditingLibrary ? "isocline" -}: - -assert lib.elem lineEditingLibrary [ "isocline" "readline" ]; -stdenv.mkDerivation (finalAttrs: { - pname = "trealla"; - version = "2.25.2"; - - src = fetchFromGitHub { - owner = "trealla-prolog"; - repo = "trealla"; - rev = "v${finalAttrs.version}"; - hash = "sha256-3NBrJFSTcjftvTYn26SMeU2HtR81J2qlDAwAZRdis4M="; - }; - - postPatch = '' - substituteInPlace Makefile \ - --replace '-I/usr/local/include' "" \ - --replace '-L/usr/local/lib' "" \ - --replace 'GIT_VERSION :=' 'GIT_VERSION ?=' - ''; - - nativeBuildInputs = [ - xxd - ]; - - buildInputs = - lib.optional enableFFI libffi - ++ lib.optional enableSSL openssl - ++ lib.optional (lineEditingLibrary == "readline") readline; - - nativeCheckInputs = lib.optionals finalAttrs.doCheck [ valgrind ]; - - strictDeps = true; - - makeFlags = [ - "GIT_VERSION=\"v${finalAttrs.version}\"" - ] - ++ lib.optional (lineEditingLibrary == "isocline") "ISOCLINE=1" - ++ lib.optional (!enableFFI) "NOFFI=1" - ++ lib.optional (!enableSSL) "NOSSL=1" - ++ lib.optional enableThreads "THREADS=1"; - - enableParallelBuilding = true; - - installPhase = '' - runHook preInstall - install -Dm755 -t $out/bin tpl - runHook postInstall - ''; - - doCheck = !valgrind.meta.broken; - - checkFlags = [ - "test" - ] ++ lib.optional checkLeaks "leaks"; - - passthru.updateScript = gitUpdater { }; - - meta = { - homepage = "https://trealla-prolog.github.io/trealla/"; - description = "A compact, efficient Prolog interpreter written in ANSI C"; - longDescription = '' - Trealla is a compact, efficient Prolog interpreter with ISO Prolog - aspirations. - Trealla is not WAM-based. It uses tree-walking, structure-sharing and - deep-binding. Source is byte-code compiled to an AST that is interpreted - at runtime. The intent and continued aim of Trealla is to be a small, - easily ported, Prolog core. - The name Trealla comes from the Liaden Universe books by Lee & Miller - (where it doesn't seem to mean anything) and also a reference to the - Trealla region of Western Australia. - ''; - changelog = "https://github.com/trealla-prolog/trealla/releases/tag/v${finalAttrs.version}"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ siraben AndersonTorres ]; - mainProgram = "tpl"; - platforms = lib.platforms.all; - broken = stdenv.isDarwin && stdenv.isx86_64; - }; -}) |