{ 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 = "38c51715cfe0b2c6cdc662cffcc8de2eec8d28a9"; sha256 = "12lqcf2zlw8gvynzignrv30vlv8zi6imnzvlqfw5m57szcpv9q0h"; }; buildInputs = [ gnunet ]; }; in buildNimblePackage rec { name = "groupchat-${version}"; version = "0.1.0"; src = fetchgit { url = https://git.gnunet.org/groupchat.git; rev = "daf8d0a877b36a5c917dafc7aed54f5a16bff690"; sha256 = "0a9h8ma88g45mays8bjx7bfllvbrphi9l0wq5ixgp1wlaxykvcal"; }; nimDeps = [ gnunet_nim ]; buildInputs = [ makeWrapper ]; postInstall = '' wrapProgram $out/bin/groupchat --prefix LD_LIBRARY_PATH : ${gnunet}/lib --prefix PATH : ${gnunet}/bin ''; }