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

34 lines
890 B
Nix

{ stdenv, fetchgit, buildNimblePackage, gnunet, makeWrapper }:
let
gnunet_nim = buildNimblePackage rec {
name = "gnunet_nim-${version}";
version = "0.1.0";
src = fetchgit {
url = https://git.gnunet.org/gnunet-nim.git;
rev = "3a1416d57727ccc277baad1bb9ec83f690476aaf";
sha256 = "0c7a15ickcd1xbxh78yjbsv93rz9055kvvi7fv4iqq9g1x0vh5nd";
};
buildInputs = [ gnunet ];
};
in
buildNimblePackage rec {
name = "groupchat-${version}";
version = "0.1.0";
src = fetchgit {
url = https://git.gnunet.org/groupchat.git;
rev = "0519dbb561fd4c600f3ae916598fbdf53c668e91";
sha256 = "1s2wr7ckrixwmv08ilywmqvq74kcydpay1n4ds1fmh28xslzdqxm";
};
nimDeps = [ gnunet_nim ];
buildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/groupchat --prefix LD_LIBRARY_PATH : ${gnunet}/lib --prefix PATH : ${gnunet}/bin
'';
}