urbit: 0.4.5 -> 0.6.0

Following https://urbit.org/docs/using/install/
This commit is contained in:
Joseph Lukasik 2018-07-18 23:27:22 -07:00 committed by Robin Gloster
parent 4082e94b5c
commit 4a044699ae

View file

@ -1,20 +1,22 @@
{ stdenv, fetchFromGitHub, gcc, gmp, libsigsegv, openssl, automake, autoconf, ragel, { autoconf, automake, cmake, curl, fetchFromGitHub, gcc, git, gmp, libsigsegv,
cmake, re2c, libtool, ncurses, perl, zlib, python2, curl }: libtool, meson, ncurses, ninja, openssl, pkgconfig, python2, ragel, re2c,
stdenv, zlib }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "urbit-${version}"; name = "urbit-${version}";
version = "0.4.5"; version = "0.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "urbit"; owner = "urbit";
repo = "urbit"; repo = "urbit";
rev = "v${version}"; rev = "urbit-${version}";
sha256 = "1zgxgqbz74nsgfyrvsnjj6xxpb64mrnby7bb5qy733sy04gmzgik"; sha256 = "158mz6c6y5z1b6piid8hvrl5mcqh8q1ny185gz51jayia51azmgs";
fetchSubmodules = true;
}; };
buildInputs = with stdenv.lib; [ buildInputs = with stdenv.lib; [
gcc gmp libsigsegv openssl automake autoconf ragel cmake re2c libtool autoconf automake cmake curl gcc git gmp libsigsegv libtool
ncurses perl zlib python2 curl meson ncurses ninja openssl pkgconfig python2 ragel re2c zlib
]; ];
# uses 'readdir_r' deprecated by glibc 2.24 # uses 'readdir_r' deprecated by glibc 2.24
@ -24,12 +26,16 @@ stdenv.mkDerivation rec {
: :
''; '';
postPatch = ''
patchShebangs .
substituteInPlace scripts/build --replace 'meson .' 'meson --prefix $out .'
'';
buildPhase = '' buildPhase = ''
sed -i 's/-lcurses/-lncurses/' Makefile git init .
mkdir -p $out ./scripts/bootstrap
cp -r . $out/ ./scripts/build
cd $out ninja -C ./build/ install
make
''; '';
installPhase = '' installPhase = ''