2019-07-17 21:29:08 +02:00
|
|
|
{ stdenv, fetchgit, buildNimblePackage, gnunet, makeWrapper }:
|
2019-07-17 20:50:36 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
gnunet_nim = buildNimblePackage rec {
|
|
|
|
name = "gnunet_nim-${version}";
|
|
|
|
version = "0.1.0";
|
2019-07-17 21:29:08 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = https://git.gnunet.org/gnunet-nim.git;
|
2020-04-04 14:38:51 +02:00
|
|
|
rev = "38c51715cfe0b2c6cdc662cffcc8de2eec8d28a9";
|
|
|
|
sha256 = "12lqcf2zlw8gvynzignrv30vlv8zi6imnzvlqfw5m57szcpv9q0h";
|
2019-07-17 21:29:08 +02:00
|
|
|
};
|
2019-07-17 20:50:36 +02:00
|
|
|
|
|
|
|
buildInputs = [ gnunet ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
buildNimblePackage rec {
|
|
|
|
name = "groupchat-${version}";
|
|
|
|
version = "0.1.0";
|
2019-07-17 21:29:08 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = https://git.gnunet.org/groupchat.git;
|
2020-06-19 17:56:06 +02:00
|
|
|
rev = "e8e27aa89bb6794be5260c86bd5c79588ca131af";
|
|
|
|
sha256 = "05jg8gavwzkwbas0j444q9lbxyglrylfd50gam2mzdixdgb1hwfb";
|
2019-07-17 21:29:08 +02:00
|
|
|
};
|
2019-07-17 20:50:36 +02:00
|
|
|
|
|
|
|
nimDeps = [ gnunet_nim ];
|
|
|
|
|
2019-07-17 21:29:08 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
2019-07-17 20:50:36 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/groupchat --prefix LD_LIBRARY_PATH : ${gnunet}/lib --prefix PATH : ${gnunet}/bin
|
|
|
|
'';
|
|
|
|
}
|