nixpkgs-overlay/pkgs/nim-packages/groupchat.nix

34 lines
890 B
Nix
Raw Normal View History

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-06-19 23:19:36 +02:00
rev = "3a1416d57727ccc277baad1bb9ec83f690476aaf";
sha256 = "0c7a15ickcd1xbxh78yjbsv93rz9055kvvi7fv4iqq9g1x0vh5nd";
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 23:19:36 +02:00
rev = "0519dbb561fd4c600f3ae916598fbdf53c668e91";
sha256 = "1s2wr7ckrixwmv08ilywmqvq74kcydpay1n4ds1fmh28xslzdqxm";
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
'';
}