Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 33 lines 790 B view raw
1{ lib 2, stdenv 3, fetchurl 4, cmake 5}: 6 7stdenv.mkDerivation rec { 8 pname = "libunarr"; 9 version = "1.1.1"; 10 11 src = fetchurl { 12 url = "https://github.com/selmf/unarr/releases/download/v${version}/unarr-${version}.tar.xz"; 13 hash = "sha256-Mo76BOqZbdOJFrEkeozxdqwpuFyvkhdONNMZmN5BdNI="; 14 }; 15 16 postPatch = lib.optionalString stdenv.isDarwin '' 17 substituteInPlace CMakeLists.txt \ 18 --replace "-flto" "" \ 19 --replace "AppleClang" "Clang" 20 ''; 21 22 nativeBuildInputs = [ 23 cmake 24 ]; 25 26 meta = with lib; { 27 homepage = "https://github.com/selmf/unarr"; 28 description = "Lightweight decompression library with support for rar, tar and zip archives"; 29 license = licenses.lgpl3Plus; 30 maintainers = with maintainers; [ wegank ]; 31 platforms = platforms.unix; 32 }; 33}