diff options
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/teyjus/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/compilers/teyjus/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/compilers/teyjus/default.nix b/nixpkgs/pkgs/development/compilers/teyjus/default.nix new file mode 100644 index 000000000000..04efe1a91342 --- /dev/null +++ b/nixpkgs/pkgs/development/compilers/teyjus/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchurl, omake, ocaml, flex, bison }: + +let + version = "2.1"; +in + +stdenv.mkDerivation { + name = "teyjus-${version}"; + + src = fetchurl { + url = "https://github.com/teyjus/teyjus/archive/v${version}.tar.gz"; + sha256 = "0393wpg8v1vvarqy2xh4fdmrwlrl6jaj960kql7cq79mb9p3m269"; + }; + + patches = [ ./fix-lex-to-flex.patch ]; + + buildInputs = [ omake ocaml flex bison ]; + + hardeningDisable = [ "format" ]; + + buildPhase = "omake all"; + + checkPhase = "omake check"; + + installPhase = "mkdir -p $out/bin && cp tj* $out/bin"; + + meta = with stdenv.lib; { + description = "An efficient implementation of the Lambda Prolog language"; + homepage = https://github.com/teyjus/teyjus; + license = stdenv.lib.licenses.gpl3; + maintainers = [ maintainers.bcdarwin ]; + platforms = platforms.linux; + }; +} |