From f471114ab66d2030f611e4a9af2b51b6abccb768 Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Tue, 25 Dec 2018 14:04:13 +0000 Subject: [PATCH] libdeflate: init at 1.1 (#52832) --- .../libraries/libdeflate/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/libraries/libdeflate/default.nix diff --git a/pkgs/development/libraries/libdeflate/default.nix b/pkgs/development/libraries/libdeflate/default.nix new file mode 100644 index 000000000000..0328a2215b48 --- /dev/null +++ b/pkgs/development/libraries/libdeflate/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b9765628fffe..3650e3bcb852 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; };