1{ stdenv, fetchFromGitHub, gcc, gmp, libsigsegv, openssl, automake, autoconf, ragel,
2 cmake, re2c, libtool, ncurses, perl, zlib, python }:
3
4stdenv.mkDerivation rec {
5
6 name = "urbit-${version}";
7 version = "2016-06-02";
8
9 src = fetchFromGitHub {
10 owner = "urbit";
11 repo = "urbit";
12 rev = "8c113559872e4a97bce3f3ee5b370ad9545c7459";
13 sha256 = "055qdpp4gm0v04pddq4380pdsi0gp2ybgv1d2lchkhwsnjyl46jl";
14 };
15
16 buildInputs = with stdenv.lib; [
17 gcc gmp libsigsegv openssl automake autoconf ragel cmake re2c libtool
18 ncurses perl zlib python
19 ];
20
21 configurePhase = ''
22 :
23 '';
24
25 buildPhase = ''
26 sed -i 's/-lcurses/-lncurses/' Makefile
27 mkdir -p $out
28 cp -r . $out/
29 cd $out
30 make
31 '';
32
33 installPhase = ''
34 :
35 '';
36
37 meta = with stdenv.lib; {
38 description = "An operating function";
39 homepage = http://urbit.org;
40 license = licenses.mit;
41 maintainers = with maintainers; [ mudri ];
42 platforms = with platforms; linux;
43 };
44}