@@ -0,0 +1,27 @@
1+{ stdenv, fetchdarcs, ocaml, findlib, cryptokit, yojson, lmdb, zlib }:
2+
3+stdenv.mkDerivation rec {
4+ name = "pijul-${version}";
5+ version = "0.1";
6+
7+ src = fetchdarcs {
8+ url = "http://pijul.org/";
9+ rev = version;
10+ sha256 = "0r189xx900w4smq6nyy1wnrjf9sgqrqw5as0l7k6gq0ra36szzff";
11+ };
12+
13+ buildInputs = [ ocaml findlib cryptokit yojson lmdb zlib ];
14+
15+ installPhase = ''
16+ mkdir -p $out/bin
17+ cp pijul $out/bin/
18+ '';
19+
20+ meta = with stdenv.lib; {
21+ homepage = https://pijul.org/;
22+ description = "Fast DVCS based on a categorical theory of patches";
23+ license = licenses.gpl3;
24+ platforms = stdenv.lib.platforms.unix;
25+ maintainers = with maintainers; [ puffnfresh ];
26+ };
27+}