nixpkgs/pkgs/development/libraries/multipart-parser-c/default.nix
Adam Joseph c7e0f6b905 treewide: s_targetPlatform_hostPlatform_ in non-compiler packages
stdenv.targetPlatform really shouldn't be used by software that
doesn't generate or manipulate binaries.  I reviewed all uses of
targetPlatform outside of pkgs/development/compilers and pkgs/stdenv
and replaced those which weren't involved in something which fits
these criteria.
2023-11-17 08:07:34 +00:00

35 lines
716 B
Nix

{ lib, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "multipart-parser-c";
version = "unstable-2015-12-14";
src = fetchFromGitHub {
owner = "iafonov";
repo = pname;
rev = "772639cf10db6d9f5a655ee9b7eb20b815fab396";
sha256 = "056r63vj8f1rwf3wk7jmwhm8ba25l6h1gs6jnkh0schbwcvi56xl";
};
buildPhase = ''
make solib
'';
installPhase = ''
mkdir -p $out/lib
mv lib*${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/
mkdir -p $out/include
mv *.h $out/include/
'';
meta = {
description = "Http multipart parser implemented in C ";
homepage = "https://github.com/iafonov/multipart-parser-c";
license = [ lib.licenses.mit ];
};
}