2017-01-24 15:23:15 +01:00
|
|
|
{ stdenv, fetchFromGitHub, clang }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2018-05-24 06:37:33 +02:00
|
|
|
name = "blocksruntime-20140624";
|
2017-01-24 15:23:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mackyle";
|
|
|
|
repo = "blocksruntime";
|
|
|
|
rev = "b5c5274daf1e0e46ecc9ad8f6f69889bce0a0a5d";
|
|
|
|
sha256 = "0ic4lagagkylcvwgf10mg0s1i57h4i25ds2fzvms22xj4zwzk1sd";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ clang ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
export CC=clang
|
|
|
|
export CXX=clang++
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = "./buildlib";
|
|
|
|
|
|
|
|
checkPhase = "./checktests";
|
|
|
|
|
|
|
|
doCheck = false; # hasdescriptor.c test fails, hrm.
|
|
|
|
|
|
|
|
installPhase = ''prefix="/" DESTDIR=$out ./installlib'';
|
|
|
|
}
|