2016-06-18 07:35:36 +01:00
|
|
|
{ stdenv, fetchFromGitHub, gcc, gmp, libsigsegv, openssl, automake, autoconf, ragel,
|
2016-12-13 14:43:02 +00:00
|
|
|
cmake, re2c, libtool, ncurses, perl, zlib, python2, curl }:
|
2015-11-14 20:32:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "urbit-${version}";
|
2017-10-07 07:38:21 +01:00
|
|
|
version = "0.4.5";
|
2015-11-14 20:32:51 +00:00
|
|
|
|
2016-06-18 07:35:36 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "urbit";
|
|
|
|
repo = "urbit";
|
2016-12-13 14:43:02 +00:00
|
|
|
rev = "v${version}";
|
2017-10-07 07:38:21 +01:00
|
|
|
sha256 = "1zgxgqbz74nsgfyrvsnjj6xxpb64mrnby7bb5qy733sy04gmzgik";
|
2015-11-14 20:32:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib; [
|
|
|
|
gcc gmp libsigsegv openssl automake autoconf ragel cmake re2c libtool
|
2016-12-13 14:43:02 +00:00
|
|
|
ncurses perl zlib python2 curl
|
2015-11-14 20:32:51 +00:00
|
|
|
];
|
|
|
|
|
2016-09-02 17:04:41 +01:00
|
|
|
# uses 'readdir_r' deprecated by glibc 2.24
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
|
|
|
|
2015-11-14 20:32:51 +00: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 07:35:36 +01:00
|
|
|
description = "An operating function";
|
2018-06-27 21:12:57 +01:00
|
|
|
homepage = https://urbit.org;
|
2015-11-14 20:32:51 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mudri ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; linux;
|
2015-11-14 20:32:51 +00:00
|
|
|
};
|
|
|
|
}
|