2018-07-19 08:27:22 +02:00
|
|
|
{ autoconf, automake, cmake, curl, fetchFromGitHub, gcc, git, gmp, libsigsegv,
|
|
|
|
libtool, meson, ncurses, ninja, openssl, pkgconfig, python2, ragel, re2c,
|
|
|
|
stdenv, zlib }:
|
2015-11-14 21:32:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "urbit-${version}";
|
2018-07-19 08:27:22 +02:00
|
|
|
version = "0.6.0";
|
2015-11-14 21:32:51 +01:00
|
|
|
|
2016-06-18 08:35:36 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "urbit";
|
|
|
|
repo = "urbit";
|
2018-07-19 08:27:22 +02:00
|
|
|
rev = "urbit-${version}";
|
|
|
|
sha256 = "158mz6c6y5z1b6piid8hvrl5mcqh8q1ny185gz51jayia51azmgs";
|
|
|
|
fetchSubmodules = true;
|
2015-11-14 21:32:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with stdenv.lib; [
|
2018-07-19 08:27:22 +02:00
|
|
|
autoconf automake cmake curl gcc git gmp libsigsegv libtool
|
|
|
|
meson ncurses ninja openssl pkgconfig python2 ragel re2c zlib
|
2015-11-14 21:32:51 +01:00
|
|
|
];
|
|
|
|
|
2016-09-02 18:04:41 +02:00
|
|
|
# uses 'readdir_r' deprecated by glibc 2.24
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
|
|
|
|
2015-11-14 21:32:51 +01:00
|
|
|
configurePhase = ''
|
|
|
|
:
|
|
|
|
'';
|
|
|
|
|
2018-07-19 08:27:22 +02:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
substituteInPlace scripts/build --replace 'meson .' 'meson --prefix $out .'
|
|
|
|
'';
|
|
|
|
|
2015-11-14 21:32:51 +01:00
|
|
|
buildPhase = ''
|
2018-07-19 08:27:22 +02:00
|
|
|
git init .
|
|
|
|
./scripts/bootstrap
|
|
|
|
./scripts/build
|
|
|
|
ninja -C ./build/ install
|
2015-11-14 21:32:51 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
:
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-06-18 08:35:36 +02:00
|
|
|
description = "An operating function";
|
2018-06-27 22:12:57 +02:00
|
|
|
homepage = https://urbit.org;
|
2015-11-14 21:32:51 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mudri ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with platforms; linux;
|
2015-11-14 21:32:51 +01:00
|
|
|
};
|
|
|
|
}
|