nixpkgs/pkgs/by-name/re/redprl/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
833 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, mlton }:
2016-09-23 04:31:58 +00:00
stdenv.mkDerivation {
pname = "redprl";
version = "unstable-2019-11-04";
src = fetchFromGitHub {
owner = "RedPRL";
repo = "sml-redprl";
rev = "c72190de76f7ed1cfbe1d2046c96e99ac5022b0c";
2016-09-23 04:31:58 +00:00
fetchSubmodules = true;
hash = "sha256-xrQT5o0bsIN+mCYUOz9iY4+j3HGROb1I6R2ADcLy8n4=";
2016-09-23 04:31:58 +00:00
};
2016-09-23 04:31:58 +00:00
buildInputs = [ mlton ];
postPatch = ''
2016-09-27 22:24:06 +00:00
patchShebangs ./script/
'';
buildPhase = ''
2016-09-23 04:31:58 +00:00
./script/mlton.sh
'';
installPhase = ''
mkdir -p $out/bin
2016-09-23 04:31:58 +00:00
mv ./bin/redprl $out/bin
'';
meta = with lib; {
2016-09-23 04:31:58 +00:00
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;
2016-09-23 04:31:58 +00:00
};
}