depot/third_party/nixpkgs/pkgs/applications/science/logic/redprl/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

38 lines
835 B
Nix

{ lib, stdenv, fetchFromGitHub, mlton }:
stdenv.mkDerivation {
pname = "redprl";
version = "unstable-2019-11-04";
src = fetchFromGitHub {
owner = "RedPRL";
repo = "sml-redprl";
rev = "c72190de76f7ed1cfbe1d2046c96e99ac5022b0c";
fetchSubmodules = true;
sha256 = "sha256-xrQT5o0bsIN+mCYUOz9iY4+j3HGROb1I6R2ADcLy8n4=";
};
buildInputs = [ mlton ];
postPatch = ''
patchShebangs ./script/
'';
buildPhase = ''
./script/mlton.sh
'';
installPhase = ''
mkdir -p $out/bin
mv ./bin/redprl $out/bin
'';
meta = with lib; {
description = "Proof assistant for Nominal Computational Type Theory";
mainProgram = "redprl";
homepage = "http://www.redprl.org/";
license = licenses.mit;
maintainers = with maintainers; [ acowley ];
platforms = platforms.unix;
};
}