2022-08-21 13:32:41 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "miniz";
|
|
|
|
version = "2.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "richgel999";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-7hc/yNJh4sD5zGQLeHjowbUtV/1mUDQre1tp9yKMSSY=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace "$out"/share/pkgconfig/miniz.pc \
|
|
|
|
--replace '=''${prefix}//' '=/' \
|
|
|
|
--replace '=''${exec_prefix}//' '=/'
|
|
|
|
'';
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Single C source file zlib-replacement library";
|
|
|
|
homepage = "https://github.com/richgel999/miniz";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ astro ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|