mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
d6a4a30fb1
(cherry picked from commit 8479962862
)
Signed-off-by: Domen Kožar <domen@dev.si>
38 lines
933 B
Nix
38 lines
933 B
Nix
{ stdenv, fetchdarcs, rustPlatform, openssl, libssh }:
|
|
|
|
with rustPlatform;
|
|
|
|
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.x86_64; # i686 builds fail due to lmdb
|
|
maintainers = with maintainers; [ puffnfresh ];
|
|
};
|
|
}
|