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}";
|
2016-12-13 14:43:02 +00:00
|
|
|
version = "0.4";
|
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}";
|
|
|
|
sha256 = "1ndy58ypilabf9pfkqzzl7wf6x1vr4gpvsbn30sygp2ip908q0xz";
|
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";
|
|
|
|
homepage = http://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
|
|
|
};
|
|
|
|
}
|