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;
rev = "1fce7e265d2c896cc5c385c4cd818e399121f822";
sha256 = "19qkw0ga109570w1l7pwgv68dvy8mz2c8q78ijkc3xsx6y3rizb2";
};
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;
2019-07-21 10:46:10 +02:00
rev = "4f646aab73ad5e5dea7b925cae9e0505aeaa8f72";
sha256 = "1yw69jyzfn0ilnlwpz5pm0z8f5z46423401c4krg66l6b1n4k0xz";
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
'';
}