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