at v206 28 lines 647 B view raw
1{stdenv, fetchurl, unzip}: 2 3stdenv.mkDerivation { 4 name = "hawknl-1.34"; 5 src = fetchurl { 6 url = http://hawksoft.com/download/files/HawkNL168src.zip; 7 sha256 = "11shn2fbxj3w0j77w0234pqyj1368x686kkgv09q5yqhi1cdp028"; 8 }; 9 10 buildInputs = [ unzip ]; 11 12 makefile = "makefile.linux"; 13 14 patchPhase = '' 15 sed -i s/soname,NL/soname,libNL/ src/makefile.linux 16 ''; 17 18 preInstall = '' 19 sed -i s,/usr/local,$out, src/makefile.linux 20 mkdir -p $out/lib $out/include 21 ''; 22 23 meta = { 24 homepage = http://hawksoft.com/hawknl/; 25 description = "Free, open source, game oriented network API"; 26 license = stdenv.lib.licenses.lgpl2Plus; 27 }; 28}