Files
nixpkgs/pkgs/by-name/el/eliza/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

64 lines
1.7 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "eliza";
version = "0-unstable-2025-05-13";
src = fetchFromGitHub {
owner = "anthay";
repo = "ELIZA";
rev = "00a277838ac0adb2165625129769c78d518a7215";
hash = "sha256-CSQyVnjyoSNwQlVXhpqjTGJ8psV9z0m2+ZOWUh6Dhm0=";
};
doCheck = true;
# Unit tests are executed automatically on execution
checkPhase = ''
runHook preCheck
echo Corki is mana | ./eliza
runHook postCheck
'';
buildPhase = ''
runHook preBuild
$CXX -std=c++20 -pedantic -o eliza ./src/eliza.cpp
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm544 ./eliza $out/bin/eliza
runHook postInstall
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version=branch=master"
];
};
meta = {
description = "C++ simulation of Joseph Weizenbaums 1966 ELIZA";
longDescription = ''
This is an implementation in C++ of ELIZA that attempts to be as close
to the original as possible.
It was made to closely follow Joseph Weizenbaums description of his program
given in his January 1966 Communications of the ACM paper, and later changed
to follow the ELIZA source code found on 2021 and the SLIP programming
function HASH(D,N) found on 2022.
It is controlled by a script identical to the one given in the appendix of
the 1966 paper.
'';
license = lib.licenses.cc0;
mainProgram = "eliza";
homepage = "https://github.com/anthay/ELIZA";
maintainers = with lib.maintainers; [ EmanuelM153 ];
platforms = lib.platforms.all;
};
})