2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "multipart-parser-c";
|
|
|
|
version = "unstable-2015-12-14";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iafonov";
|
|
|
|
repo = pname;
|
|
|
|
rev = "772639cf10db6d9f5a655ee9b7eb20b815fab396";
|
2020-06-02 18:00:15 +00:00
|
|
|
sha256 = "056r63vj8f1rwf3wk7jmwhm8ba25l6h1gs6jnkh0schbwcvi56xl";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make solib
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib
|
2024-01-02 11:29:13 +00:00
|
|
|
mv lib*${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkdir -p $out/include
|
|
|
|
mv *.h $out/include/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Http multipart parser implemented in C ";
|
|
|
|
homepage = "https://github.com/iafonov/multipart-parser-c";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = [ lib.licenses.mit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|