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-07-10 18:15:59 +02:00
rev = "8c4e5fac40d2efb780d802bd800697e9d15b7ed9";
sha256 = "1v417w22n8jdbqzq0qni4wxwa8n711x51sijm3wln805d6gsqwfy";
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-07-10 18:15:59 +02:00
rev = "229b1173eecd8e27e1a5cf96b5f6b08c3b76f971";
sha256 = "007fmfjjhpbrl7nrh8yqxz1r1i1lc9mbrxsasb2jsvf765mfascj";
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
'';
}