nixpkgs/pkgs/development/libraries/miniz/default.nix
2022-09-28 18:08:11 +02:00

30 lines
725 B
Nix

{ 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 ];
postFixup = ''
substituteInPlace "$out"/share/pkgconfig/miniz.pc \
--replace '=''${prefix}//' '=/' \
--replace '=''${exec_prefix}//' '=/'
'';
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;
};
}