nixpkgs-overlay/pkgs/nim-packages/groupchat.nix

25 lines
576 B
Nix

{ stdenv, buildNimblePackage, gnunet, git, makeWrapper }:
let
gnunet_nim = buildNimblePackage rec {
name = "gnunet_nim-${version}";
version = "0.1.0";
src = /home/christian/projects/gnunet_nim;
buildInputs = [ gnunet ];
};
in
buildNimblePackage rec {
name = "groupchat-${version}";
version = "0.1.0";
src = /home/christian/projects/groupchat;
nimDeps = [ gnunet_nim ];
buildInputs = [ git makeWrapper ];
postInstall = ''
wrapProgram $out/bin/groupchat --prefix LD_LIBRARY_PATH : ${gnunet}/lib --prefix PATH : ${gnunet}/bin
'';
}