{ 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 = "1fce7e265d2c896cc5c385c4cd818e399121f822"; sha256 = "19qkw0ga109570w1l7pwgv68dvy8mz2c8q78ijkc3xsx6y3rizb2"; }; buildInputs = [ gnunet ]; }; in buildNimblePackage rec { name = "groupchat-${version}"; version = "0.1.0"; src = fetchgit { url = https://git.gnunet.org/groupchat.git; rev = "1506051e92a3e4ded8f218a63e329ffccb53bebc"; sha256 = "1srabvlr703fmsz4rm12mq81bc2njm0wb36w24vclcyz5cd26191"; }; nimDeps = [ gnunet_nim ]; buildInputs = [ makeWrapper ]; postInstall = '' wrapProgram $out/bin/groupchat --prefix LD_LIBRARY_PATH : ${gnunet}/lib --prefix PATH : ${gnunet}/bin ''; }