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



                                 
                  




                         
                                                                    



















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