Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 34 lines 715 B view raw
1{ lib, stdenv 2, fetchFromGitHub 3}: 4 5stdenv.mkDerivation rec { 6 pname = "multipart-parser-c"; 7 version = "unstable-2015-12-14"; 8 9 src = fetchFromGitHub { 10 owner = "iafonov"; 11 repo = pname; 12 rev = "772639cf10db6d9f5a655ee9b7eb20b815fab396"; 13 sha256 = "056r63vj8f1rwf3wk7jmwhm8ba25l6h1gs6jnkh0schbwcvi56xl"; 14 }; 15 16 buildPhase = '' 17 make solib 18 ''; 19 20 installPhase = '' 21 mkdir -p $out/lib 22 mv lib*${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/ 23 24 mkdir -p $out/include 25 mv *.h $out/include/ 26 ''; 27 28 meta = { 29 description = "Http multipart parser implemented in C"; 30 homepage = "https://github.com/iafonov/multipart-parser-c"; 31 license = [ lib.licenses.mit ]; 32 }; 33 34}