2016-06-18 09:35:36 +03:00
|
|
|
{ stdenv, fetchFromGitHub, gcc, gmp, libsigsegv, openssl, automake, autoconf, ragel,
|
2016-12-13 17:43:02 +03:00
|
|
|
cmake, re2c, libtool, ncurses, perl, zlib, python2, curl }:
|
2015-11-14 23:32:51 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "urbit-${version}";
|
2017-10-07 09:38:21 +03:00
|
|
|
version = "0.4.5";
|
2015-11-14 23:32:51 +03:00
|
|
|
|
2016-06-18 09:35:36 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "urbit";
|
|
|
|
repo = "urbit";
|
2016-12-13 17:43:02 +03:00
|
|
|
rev = "v${version}";
|
2017-10-07 09:38:21 +03:00
|
|
|
sha256 = "1zgxgqbz74nsgfyrvsnjj6xxpb64mrnby7bb5qy733sy04gmzgik";
|
2015-11-14 23:32:51 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib; [
|
|
|
|
gcc gmp libsigsegv openssl automake autoconf ragel cmake re2c libtool
|
2016-12-13 17:43:02 +03:00
|
|
|
ncurses perl zlib python2 curl
|
2015-11-14 23:32:51 +03:00
|
|
|
];
|
|
|
|
|
2016-09-02 19:04:41 +03:00
|
|
|
# uses 'readdir_r' deprecated by glibc 2.24
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
|
|
|
|
2015-11-14 23:32:51 +03:00
|
|
|
configurePhase = ''
|
|
|
|
:
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
sed -i 's/-lcurses/-lncurses/' Makefile
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r . $out/
|
|
|
|
cd $out
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
:
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-06-18 09:35:36 +03:00
|
|
|
description = "An operating function";
|
|
|
|
homepage = http://urbit.org;
|
2015-11-14 23:32:51 +03:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mudri ];
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = with platforms; linux;
|
2015-11-14 23:32:51 +03:00
|
|
|
};
|
|
|
|
}
|