summaryrefslogtreecommitdiff
path: root/taler-exchange-dev.nix
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2016-10-17 20:31:58 +0200
committertg(x) <*@tg-x.net>2016-10-17 20:31:58 +0200
commitd71d12594185a5fe476ac5951b3cc648ffdd5374 (patch)
tree646502d9562f1dbd94ac7a821e8a72f57f725e3a /taler-exchange-dev.nix
parent59d9e5a190e661d36e53c8488646815422e08b62 (diff)
downloadexchange-d71d12594185a5fe476ac5951b3cc648ffdd5374.tar.gz
exchange-d71d12594185a5fe476ac5951b3cc648ffdd5374.tar.bz2
exchange-d71d12594185a5fe476ac5951b3cc648ffdd5374.zip
nix pkg
Diffstat (limited to 'taler-exchange-dev.nix')
-rw-r--r--taler-exchange-dev.nix61
1 files changed, 61 insertions, 0 deletions
diff --git a/taler-exchange-dev.nix b/taler-exchange-dev.nix
new file mode 100644
index 00000000..2e5e068e
--- /dev/null
+++ b/taler-exchange-dev.nix
@@ -0,0 +1,61 @@
+{ stdenv, makeWrapper, pkgconfig, autoconf, automake, libtool, ccache, ccache_dir ? ""
+, gnunet-dev, postgresql, jansson, libgcrypt, libgnurl, libmicrohttpd }:
+
+stdenv.mkDerivation rec {
+ src = ./.;
+ name = "taler-exchange-dev";
+
+ buildInputs = [
+ makeWrapper pkgconfig autoconf automake libtool ccache
+ gnunet-dev postgresql jansson libgcrypt libgnurl libmicrohttpd
+ ];
+
+ patchPhase = ''
+ if [ -e Makefile ]; then
+ make distclean
+ fi
+ '';
+
+ NIX_CFLAGS_COMPILE = "-ggdb -O0";
+
+ configureFlags = [
+ "--enable-gcc-hardening"
+ "--enable-linker-hardening"
+
+ "--enable-logging=verbose"
+ "--enable-poisoning"
+ ];
+
+ preConfigure = ''
+ ./bootstrap
+
+ if [ -n "${ccache_dir}" ]; then
+ export CC='ccache gcc'
+ export CCACHE_COMPRESS=1
+ export CCACHE_DIR="${ccache_dir}"
+ export CCACHE_UMASK=007
+ fi
+ '';
+
+ doCheck = false;
+
+ postInstall = ''
+ # Tests can be run this way
+ #export GNUNET_PREFIX="$out"
+ #export PATH="$out/bin:$PATH"
+ #make -k check
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Exchange for GNU Taler";
+
+ longDescription = ''
+ '';
+
+ homepage = https://taler.net/;
+
+ license = licenses.gpl3Plus;
+ platforms = platforms.gnu;
+ maintainers = with maintainers; [ ];
+ };
+}