about summary refs log tree commit diff
path: root/pkgs/applications/version-management/pijul/default.nix
blob: f00e22bb385c1c2738806b64109cbc3a79fdba3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchdarcs, ocaml, findlib, cryptokit, yojson, lmdb, zlib }:

stdenv.mkDerivation rec {
  name = "pijul-${version}";
  version = "0.1";

  src = fetchdarcs {
    url = "http://pijul.org/";
    rev = version;
    sha256 = "0r189xx900w4smq6nyy1wnrjf9sgqrqw5as0l7k6gq0ra36szzff";
  };

  buildInputs = [ ocaml findlib cryptokit yojson lmdb zlib ];

  installPhase = ''
    mkdir -p $out/bin
    cp pijul $out/bin/
  '';

  meta = with stdenv.lib; {
    homepage = https://pijul.org/;
    description = "Fast DVCS based on a categorical theory of patches";
    license = licenses.gpl3;
    platforms = stdenv.lib.platforms.unix;
    maintainers = with maintainers; [ puffnfresh ];
  };
}