nixpkgs-suyu/pkgs/misc/urbit/default.nix

47 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, gcc, gmp, libsigsegv, openssl, automake, autoconf, ragel,
2016-12-13 15:43:02 +01:00
cmake, re2c, libtool, ncurses, perl, zlib, python2, curl }:
stdenv.mkDerivation rec {
name = "urbit-${version}";
2017-10-07 08:38:21 +02:00
version = "0.4.5";
src = fetchFromGitHub {
owner = "urbit";
repo = "urbit";
2016-12-13 15:43:02 +01:00
rev = "v${version}";
2017-10-07 08:38:21 +02:00
sha256 = "1zgxgqbz74nsgfyrvsnjj6xxpb64mrnby7bb5qy733sy04gmzgik";
};
buildInputs = with stdenv.lib; [
gcc gmp libsigsegv openssl automake autoconf ragel cmake re2c libtool
2016-12-13 15:43:02 +01:00
ncurses perl zlib python2 curl
];
2016-09-02 18:04:41 +02:00
# uses 'readdir_r' deprecated by glibc 2.24
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
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;
license = licenses.mit;
maintainers = with maintainers; [ mudri ];
platforms = with platforms; linux;
};
}