summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/version-management/pijul/default.nix
diff options
context:
space:
mode:
authorBrian McKenna <bmckenna@atlassian.com>2016-02-16 21:54:53 +1100
committerBrian McKenna <bmckenna@atlassian.com>2016-02-17 07:28:26 +1100
commit93328bbd6241c42b04c75c4be9a6c16033499104 (patch)
treec426bace266888ca8b5ef5044e020386cdc6acd9 /pkgs/applications/version-management/pijul/default.nix
parent8b644c5826f9e0c62f84fa7844e369fca9a41a96 (diff)
pijul: 0.2-6ab9ba
Maintainer has been working with us, this commit was given by them.
Diffstat (limited to 'pkgs/applications/version-management/pijul/default.nix')
-rw-r--r--pkgs/applications/version-management/pijul/default.nix28
1 files changed, 19 insertions, 9 deletions
diff --git a/pkgs/applications/version-management/pijul/default.nix b/pkgs/applications/version-management/pijul/default.nix
index f00e22bb385c..399e4cf30244 100644
--- a/pkgs/applications/version-management/pijul/default.nix
+++ b/pkgs/applications/version-management/pijul/default.nix
@@ -1,22 +1,32 @@
-{ stdenv, fetchdarcs, ocaml, findlib, cryptokit, yojson, lmdb, zlib }:
+{ stdenv, fetchdarcs, rustUnstable, openssl, libssh }:
-stdenv.mkDerivation rec {
+with rustUnstable;
+
+buildRustPackage rec {
name = "pijul-${version}";
- version = "0.1";
+ version = "0.2-6ab9ba";
src = fetchdarcs {
url = "http://pijul.org/";
- rev = version;
- sha256 = "0r189xx900w4smq6nyy1wnrjf9sgqrqw5as0l7k6gq0ra36szzff";
+ context = ./pijul.org.context;
+ sha256 = "1cgkcr5wdkwj7s0rda90bfchbwmchgi60w5d637894w20hkplsr4";
};
- buildInputs = [ ocaml findlib cryptokit yojson lmdb zlib ];
+ sourceRoot = "fetchdarcs/pijul";
+
+ depsSha256 = "110bj2lava1xs75z6k34aip7zb7rcmnxk5hmiyi32i9hs0ddsdrz";
- installPhase = ''
- mkdir -p $out/bin
- cp pijul $out/bin/
+ 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";