2016-04-20 13:08:12 +01:00
|
|
|
{ stdenv, fetchdarcs, rustPlatform, openssl, libssh }:
|
2015-10-21 11:31:39 +01:00
|
|
|
|
2016-04-20 13:08:12 +01:00
|
|
|
with rustPlatform;
|
2016-02-16 10:54:53 +00:00
|
|
|
|
|
|
|
buildRustPackage rec {
|
2015-10-21 11:31:39 +01:00
|
|
|
name = "pijul-${version}";
|
2016-02-16 10:54:53 +00:00
|
|
|
version = "0.2-6ab9ba";
|
2015-10-21 11:31:39 +01:00
|
|
|
|
|
|
|
src = fetchdarcs {
|
|
|
|
url = "http://pijul.org/";
|
2016-02-16 10:54:53 +00:00
|
|
|
context = ./pijul.org.context;
|
|
|
|
sha256 = "1cgkcr5wdkwj7s0rda90bfchbwmchgi60w5d637894w20hkplsr4";
|
2015-10-21 11:31:39 +01:00
|
|
|
};
|
|
|
|
|
2016-02-16 10:54:53 +00:00
|
|
|
sourceRoot = "fetchdarcs/pijul";
|
|
|
|
|
|
|
|
depsSha256 = "110bj2lava1xs75z6k34aip7zb7rcmnxk5hmiyi32i9hs0ddsdrz";
|
2015-10-21 11:31:39 +01:00
|
|
|
|
2016-02-16 10:54:53 +00:00
|
|
|
cargoUpdateHook = ''
|
|
|
|
cp -r ../libpijul src/
|
2015-10-21 11:31:39 +01:00
|
|
|
'';
|
|
|
|
|
2016-02-16 10:54:53 +00:00
|
|
|
setSourceRoot = ''
|
|
|
|
chmod -R u+w "$sourceRoot"
|
|
|
|
cp -r "$sourceRoot"/../libpijul "$sourceRoot"/src/
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ openssl libssh ];
|
|
|
|
|
2015-10-21 11:31:39 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|