3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libdeflate/default.nix
R. RyanTM d06f3ca44e libdeflate: 1.1 -> 1.2 (#54180)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/libdeflate/versions
2019-01-20 22:34:35 +01:00

32 lines
719 B
Nix

{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "libdeflate-${version}";
version = "1.2";
src = fetchFromGitHub {
owner = "ebiggers";
repo = "libdeflate";
rev = "v${version}";
sha256 = "0kmp38s7vahvbgzzhs5v0bfyjgas1in7jn69gpyh70kl08279ly0";
};
postPatch = ''
substituteInPlace Makefile --replace /usr $out
'';
configurePhase = ''
make programs/config.h
'';
enableParallelBuilding = true;
meta = with lib; {
description = "Fast DEFLATE/zlib/gzip compressor and decompressor";
license = licenses.mit;
homepage = https://github.com/ebiggers/libdeflate;
platforms = platforms.linux;
maintainers = with maintainers; [ orivej ];
};
}