libdeflate: init at 1.1 (#52832)

This commit is contained in:
Orivej Desh 2018-12-25 14:04:13 +00:00 committed by Orivej Desh (NixOS)
parent 3b19fa9745
commit f471114ab6
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "libdeflate-${version}";
version = "1.1";
src = fetchFromGitHub {
owner = "ebiggers";
repo = "libdeflate";
rev = "v${version}";
sha256 = "1wqxwza6rwmhrsy9sw86pdcd0w742gbzsy9qxnq6kk59m6h1dbsb";
};
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 ];
};
}

View File

@ -10700,6 +10700,8 @@ in
libde265 = callPackage ../development/libraries/libde265 {};
libdeflate = callPackage ../development/libraries/libdeflate { };
libdevil = callPackage ../development/libraries/libdevil {
inherit (darwin.apple_sdk.frameworks) OpenGL;
};