summary refs log blame commit diff
path: root/pkgs/development/libraries/libdeflate/default.nix
blob: 115ad3831f2f5ee883b12681f4b7e46230b6eb96 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                 
                       
                  




                         
                                                                    



















                                                                       
{ stdenv, lib, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "libdeflate";
  version = "1.5";

  src = fetchFromGitHub {
    owner = "ebiggers";
    repo = "libdeflate";
    rev = "v${version}";
    sha256 = "1v0y7998p8a8wpblnpdyk5zzvpj8pbrpzxwxmv0b0axrhaarxrf3";
  };

  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 ];
  };
}