about summary refs log tree commit diff
path: root/pkgs/applications/version-management/pijul/default.nix
blob: 399e4cf30244a1eedc2ed827afbfae9b2e4cd36e (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
28
29
30
31
32
33
34
35
36
37
{ stdenv, fetchdarcs, rustUnstable, openssl, libssh }:

with rustUnstable;

buildRustPackage rec {
  name = "pijul-${version}";
  version = "0.2-6ab9ba";

  src = fetchdarcs {
    url = "http://pijul.org/";
    context = ./pijul.org.context;
    sha256 = "1cgkcr5wdkwj7s0rda90bfchbwmchgi60w5d637894w20hkplsr4";
  };

  sourceRoot = "fetchdarcs/pijul";

  depsSha256 = "110bj2lava1xs75z6k34aip7zb7rcmnxk5hmiyi32i9hs0ddsdrz";

  cargoUpdateHook = ''
    cp -r ../libpijul src/
  '';

  setSourceRoot = ''
    chmod -R u+w "$sourceRoot"
    cp -r "$sourceRoot"/../libpijul "$sourceRoot"/src/
  '';

  buildInputs = [ openssl libssh ];

  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 ];
  };
}