add groupchat package

This commit is contained in:
Christian Ulrich 2019-07-17 20:50:36 +02:00
parent 8173a2e886
commit 031229c97e
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
2 changed files with 26 additions and 0 deletions

View File

@ -5,6 +5,8 @@ self: super:
gintro = super.callPackage ./pkgs/nim-packages/gintro/default.nix { }; gintro = super.callPackage ./pkgs/nim-packages/gintro/default.nix { };
groupchat = super.callPackage ./pkgs/nim-packages/groupchat.nix { };
shinto-cli = super.callPackage ./pkgs/shinto-cli { }; shinto-cli = super.callPackage ./pkgs/shinto-cli { };
ui = super.callPackage ./pkgs/nim-packages/ui.nix { }; ui = super.callPackage ./pkgs/nim-packages/ui.nix { };

View File

@ -0,0 +1,24 @@
{ 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
'';
}