From 031229c97eb6adab1b11685d1571f93a4e042dbd Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Wed, 17 Jul 2019 20:50:36 +0200 Subject: [PATCH] add groupchat package --- default.nix | 2 ++ pkgs/nim-packages/groupchat.nix | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/nim-packages/groupchat.nix diff --git a/default.nix b/default.nix index 9b0f3f5..4ace7be 100644 --- a/default.nix +++ b/default.nix @@ -5,6 +5,8 @@ self: super: gintro = super.callPackage ./pkgs/nim-packages/gintro/default.nix { }; + groupchat = super.callPackage ./pkgs/nim-packages/groupchat.nix { }; + shinto-cli = super.callPackage ./pkgs/shinto-cli { }; ui = super.callPackage ./pkgs/nim-packages/ui.nix { }; diff --git a/pkgs/nim-packages/groupchat.nix b/pkgs/nim-packages/groupchat.nix new file mode 100644 index 0000000..01af403 --- /dev/null +++ b/pkgs/nim-packages/groupchat.nix @@ -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 + ''; +}