2016-06-18 07:35:36 +01:00
|
|
|
{ stdenv, fetchFromGitHub, gcc, gmp, libsigsegv, openssl, automake, autoconf, ragel,
|
2015-11-14 20:32:51 +00:00
|
|
|
cmake, re2c, libtool, ncurses, perl, zlib, python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "urbit-${version}";
|
2016-06-18 07:35:36 +01:00
|
|
|
version = "2016-06-02";
|
2015-11-14 20:32:51 +00:00
|
|
|
|
2016-06-18 07:35:36 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "urbit";
|
|
|
|
repo = "urbit";
|
|
|
|
rev = "8c113559872e4a97bce3f3ee5b370ad9545c7459";
|
|
|
|
sha256 = "055qdpp4gm0v04pddq4380pdsi0gp2ybgv1d2lchkhwsnjyl46jl";
|
2015-11-14 20:32:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib; [
|
|
|
|
gcc gmp libsigsegv openssl automake autoconf ragel cmake re2c libtool
|
|
|
|
ncurses perl zlib python
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|