mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
redprl: switch to fetchFromGitHub, use postPatch
This commit is contained in:
parent
11c55d061e
commit
15d85dac80
1 changed files with 12 additions and 5 deletions
|
@ -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/";
|
||||
|
|
Loading…
Reference in a new issue