redprl: switch to fetchFromGitHub, use postPatch

+12 -5
+12 -5
pkgs/applications/science/logic/redprl/default.nix
··· 1 - { lib, stdenv, fetchgit, mlton }: 1 + { lib, stdenv, fetchFromGitHub, mlton }: 2 + 2 3 stdenv.mkDerivation { 3 4 pname = "redprl"; 4 5 version = "unstable-2017-03-28"; 5 6 6 - src = fetchgit { 7 - url = "https://github.com/RedPRL/sml-redprl.git"; 7 + src = fetchFromGitHub { 8 + owner = "RedPRL"; 9 + repo = "sml-redprl"; 8 10 rev = "bdf027de732e4a8d10f9f954389dfff0c822f18b"; 11 + fetchSubmodules = true; 9 12 sha256 = "0cihwnd78d3ksxp6mppifm7xpi3fsii5mixvicajy87ggw8z305c"; 10 - fetchSubmodules = true; 11 13 }; 14 + 12 15 buildInputs = [ mlton ]; 13 - patchPhase = '' 16 + 17 + postPatch = '' 14 18 patchShebangs ./script/ 15 19 ''; 20 + 16 21 buildPhase = '' 17 22 ./script/mlton.sh 18 23 ''; 24 + 19 25 installPhase = '' 20 26 mkdir -p $out/bin 21 27 mv ./bin/redprl $out/bin 22 28 ''; 29 + 23 30 meta = with lib; { 24 31 description = "A proof assistant for Nominal Computational Type Theory"; 25 32 homepage = "http://www.redprl.org/";