Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 27 lines 570 B view raw
1{ stdenv, fetchFromGitHub, clang }: 2 3stdenv.mkDerivation { 4 name = "blocksruntime"; 5 6 src = fetchFromGitHub { 7 owner = "mackyle"; 8 repo = "blocksruntime"; 9 rev = "b5c5274daf1e0e46ecc9ad8f6f69889bce0a0a5d"; 10 sha256 = "0ic4lagagkylcvwgf10mg0s1i57h4i25ds2fzvms22xj4zwzk1sd"; 11 }; 12 13 buildInputs = [ clang ]; 14 15 configurePhase = '' 16 export CC=clang 17 export CXX=clang++ 18 ''; 19 20 buildPhase = "./buildlib"; 21 22 checkPhase = "./checktests"; 23 24 doCheck = false; # hasdescriptor.c test fails, hrm. 25 26 installPhase = ''prefix="/" DESTDIR=$out ./installlib''; 27}