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 = "8c4e5fac40d2efb780d802bd800697e9d15b7ed9";
sha256 = "1v417w22n8jdbqzq0qni4wxwa8n711x51sijm3wln805d6gsqwfy";
};
buildInputs = [ gnunet ];
};
in
buildNimblePackage rec {
name = "groupchat-${version}";
version = "0.1.0";
src = fetchgit {
url = https://git.gnunet.org/groupchat.git;
rev = "229b1173eecd8e27e1a5cf96b5f6b08c3b76f971";
sha256 = "007fmfjjhpbrl7nrh8yqxz1r1i1lc9mbrxsasb2jsvf765mfascj";
};
nimDeps = [ gnunet_nim ];
buildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/groupchat --prefix LD_LIBRARY_PATH : ${gnunet}/lib --prefix PATH : ${gnunet}/bin
'';
}