Skip to content

Commit

Permalink
gnunet-messenger-cli: 969f153 -> 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzleutgeb committed Sep 14, 2023
1 parent 59a61be commit 7b7d08a
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions pkgs/gnunet-messenger-cli/default.nix
Original file line number Diff line number Diff line change
@@ -1,35 +1,45 @@
{
stdenv,
fetchgit,
# Build tools:
meson,
ninja,
pkg-config,
# Dependencies:
gnunet,
libsodium,
libgcrypt,
libgnunetchat,
ncurses,
fetchgit,
}:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
name = "gnunet-messenger-cli";
version = "0.1.1";

src = fetchgit {
url = "https://git.gnunet.org/messenger-cli";
rev = "969f1536918e342bb331acfb042bf906c307978c";
sha256 = "sha256-y+6A70dh973qJTDy12Tgm4dvgZgPjtkqSHklP0/6YBc=";
rev = "v${version}";
hash = "sha256-p2HukucR1pE5+PJu64MHqkrOhgxnu/bdnr0vrccU44s=";
};

INSTALL_DIR = (placeholder "out") + "/";

nativeBuildInputs = [meson ninja pkg-config];

buildInputs = [
gnunet
libsodium
libgcrypt
libgnunetchat
libsodium
ncurses
];

preInstall = ''
mkdir -p $out/bin
preConfigure = ''
echo $PKG_CONFIG_PATH
pkg-config --list-all
'';

preFixup = ''
mv $out/bin/messenger-cli $out/bin/gnunet-messenger-cli
'';
preInstall = "mkdir -p $out/bin";

preFixup = "mv $out/bin/messenger-cli $out/bin/gnunet-messenger-cli";
}

0 comments on commit 7b7d08a

Please sign in to comment.