mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
30 lines
725 B
Nix
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;
|
|
};
|
|
}
|