Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, pkg-config 5, cmake 6, git 7, zlib 8, sparsehash 9, CoreServices 10}: 11 12stdenv.mkDerivation rec { 13 pname = "afsctool"; 14 version = "1.7.0"; 15 16 src = fetchFromGitHub { 17 owner = "RJVB"; 18 repo = pname; 19 rev = version; 20 hash = "sha256-rqca7gpH46hk4MEPMHqYnteYJnGpLS/gu4XP7xWqDzo="; 21 }; 22 23 nativeBuildInputs = [ pkg-config cmake git ]; 24 buildInputs = [ zlib sparsehash CoreServices ]; 25 26 meta = with lib; { 27 description = "Utility that allows end-users to leverage HFS+/APFS compression"; 28 license = licenses.unfree; 29 maintainers = [ maintainers.viraptor ]; 30 platforms = platforms.darwin; 31 homepage = "https://github.com/RJVB/afsctool"; 32 }; 33}