summary refs log tree commit diff
path: root/pkgs/misc/urbit/default.nix
blob: e4049f07897a31818324c144f89621d5b622ffcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ stdenv, fetchgit, gcc, gmp, libsigsegv, openssl, automake, autoconf, ragel,
  cmake, re2c, libtool, ncurses, perl, zlib, python }:

stdenv.mkDerivation rec {

  name = "urbit-${version}";
  version = "2015.09.26";

  src = fetchgit {
    url = "https://github.com/urbit/urbit.git";
    rev = "c9592664c797b2dd74f26886528656f8a7058640";
    sha256 = "0sgrxnmpqh54mgar81wlb6gff8c0pc24p53xwxr448g5shvnzjx9";
  };

  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; {
    description = "an operating function";
    homepage = http://urbit.org/preview/~2015.9.25/materials;
    license = licenses.mit;
    maintainers = with maintainers; [ mudri ];
  };
}