redprl: switch to fetchFromGitHub, use postPatch

This commit is contained in:
Sandro Jäckel 2021-11-09 10:21:08 +01:00
parent 11c55d061e
commit 15d85dac80
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,25 +1,32 @@
{ lib, stdenv, fetchgit, mlton }:
{ lib, stdenv, fetchFromGitHub, mlton }:
stdenv.mkDerivation {
pname = "redprl";
version = "unstable-2017-03-28";
src = fetchgit {
url = "https://github.com/RedPRL/sml-redprl.git";
src = fetchFromGitHub {
owner = "RedPRL";
repo = "sml-redprl";
rev = "bdf027de732e4a8d10f9f954389dfff0c822f18b";
sha256 = "0cihwnd78d3ksxp6mppifm7xpi3fsii5mixvicajy87ggw8z305c";
fetchSubmodules = true;
sha256 = "0cihwnd78d3ksxp6mppifm7xpi3fsii5mixvicajy87ggw8z305c";
};
buildInputs = [ mlton ];
patchPhase = ''
postPatch = ''
patchShebangs ./script/
'';
buildPhase = ''
./script/mlton.sh
'';
installPhase = ''
mkdir -p $out/bin
mv ./bin/redprl $out/bin
'';
meta = with lib; {
description = "A proof assistant for Nominal Computational Type Theory";
homepage = "http://www.redprl.org/";