diff options
author | Orivej Desh <orivej@gmx.fr> | 2018-12-25 14:04:13 +0000 |
---|---|---|
committer | Orivej Desh (NixOS) <40807862+orivej-nixos@users.noreply.github.com> | 2018-12-25 14:04:13 +0000 |
commit | f471114ab66d2030f611e4a9af2b51b6abccb768 (patch) | |
tree | 60d11d57bf8c004894016693622ffb664743fbac /pkgs/development/libraries/libdeflate | |
parent | 3b19fa97455081f26c675cf001e8decc5f9c14ca (diff) | |
download | nixpkgs-f471114ab66d2030f611e4a9af2b51b6abccb768.tar nixpkgs-f471114ab66d2030f611e4a9af2b51b6abccb768.tar.gz nixpkgs-f471114ab66d2030f611e4a9af2b51b6abccb768.tar.bz2 nixpkgs-f471114ab66d2030f611e4a9af2b51b6abccb768.tar.lz nixpkgs-f471114ab66d2030f611e4a9af2b51b6abccb768.tar.xz nixpkgs-f471114ab66d2030f611e4a9af2b51b6abccb768.tar.zst nixpkgs-f471114ab66d2030f611e4a9af2b51b6abccb768.zip |
libdeflate: init at 1.1 (#52832)
Diffstat (limited to 'pkgs/development/libraries/libdeflate')
-rw-r--r-- | pkgs/development/libraries/libdeflate/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libdeflate/default.nix b/pkgs/development/libraries/libdeflate/default.nix new file mode 100644 index 00000000000..0328a2215b4 --- /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 ]; + }; +} |