Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, clang }: 2 3stdenv.mkDerivation { 4 pname = "blocksruntime"; 5 version = "unstable-2014-06-24"; 6 7 src = fetchFromGitHub { 8 owner = "mackyle"; 9 repo = "blocksruntime"; 10 rev = "b5c5274daf1e0e46ecc9ad8f6f69889bce0a0a5d"; 11 sha256 = "0ic4lagagkylcvwgf10mg0s1i57h4i25ds2fzvms22xj4zwzk1sd"; 12 }; 13 14 buildInputs = [ clang ]; 15 16 configurePhase = '' 17 export CC=clang 18 export CXX=clang++ 19 ''; 20 21 buildPhase = "./buildlib"; 22 23 checkPhase = "./checktests"; 24 25 doCheck = false; # hasdescriptor.c test fails, hrm. 26 27 installPhase = ''prefix="/" DESTDIR=$out ./installlib''; 28 29 meta = with lib; { 30 description = "Installs the BlocksRuntime library from the compiler-rt"; 31 homepage = "https://github.com/mackyle/blocksruntime"; 32 license = licenses.mit; 33 }; 34}