lol
at 24.05-pre 29 lines 725 B view raw
1{ lib, stdenv, fetchFromGitHub, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "miniz"; 5 version = "2.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "richgel999"; 9 repo = pname; 10 rev = version; 11 sha256 = "sha256-7hc/yNJh4sD5zGQLeHjowbUtV/1mUDQre1tp9yKMSSY="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 postFixup = '' 17 substituteInPlace "$out"/share/pkgconfig/miniz.pc \ 18 --replace '=''${prefix}//' '=/' \ 19 --replace '=''${exec_prefix}//' '=/' 20 ''; 21 22 meta = with lib; { 23 description = "Single C source file zlib-replacement library"; 24 homepage = "https://github.com/richgel999/miniz"; 25 license = licenses.mit; 26 maintainers = with maintainers; [ astro ]; 27 platforms = platforms.unix; 28 }; 29}