Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 34 lines 692 B view raw
1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 camlp-streams, 6 cstruct, 7 decompress, 8}: 9 10buildDunePackage rec { 11 pname = "tar"; 12 version = "2.6.0"; 13 src = fetchurl { 14 url = "https://github.com/mirage/ocaml-tar/releases/download/v${version}/tar-${version}.tbz"; 15 hash = "sha256-yv8MtwRjQ+K/9/wPkhfk4xI1VV5MSIn7GUeSmFtvse4="; 16 }; 17 18 minimalOCamlVersion = "4.08"; 19 20 propagatedBuildInputs = [ 21 camlp-streams 22 cstruct 23 decompress 24 ]; 25 26 doCheck = true; 27 28 meta = { 29 description = "Decode and encode tar format files in pure OCaml"; 30 homepage = "https://github.com/mirage/ocaml-tar"; 31 license = lib.licenses.mit; 32 maintainers = [ lib.maintainers.ulrikstrid ]; 33 }; 34}