-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ stdenv, fetchFromGitHub, cmake, pkg-config, zlib, bzip2, xz, zstd, openssl }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "minizip"; | ||
version = "2.10.4"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "nmoinvaz"; | ||
repo = pname; | ||
rev = version; | ||
sha256 = "15bbagngvm738prkzv7lfs64pn4pq7jkhwz571j0w0nb5nw9c01x"; | ||
}; | ||
|
||
nativeBuildInputs = [ cmake pkg-config ]; | ||
|
||
cmakeFlags = [ | ||
"-DBUILD_SHARED_LIBS=YES" | ||
"-DMZ_OPENSSL=ON" | ||
]; | ||
|
||
buildInputs = [ zlib bzip2 xz zstd openssl ]; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Compression library implementing the deflate compression method found in gzip and PKZIP"; | ||
homepage = "https://github.com/nmoinvaz/minizip"; | ||
license = licenses.zlib; | ||
maintainers = with maintainers; [ gebner ]; | ||
platforms = platforms.unix; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters