nixpkgs/pkgs/applications/misc/namecoin/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

2014-06-30 00:08:34 +00:00
{ fetchgit, stdenv, db4, boost, openssl, unzip }:
stdenv.mkDerivation rec {
2014-10-01 04:49:49 +00:00
version = "0.3.76";
2014-06-30 00:08:34 +00:00
name = "namecoin-${version}";
src = fetchgit {
url = "https://github.com/namecoin/namecoin";
2014-10-01 04:49:49 +00:00
rev = "224175ca3bba6eea6f6b1bdb007b482eb2bd2aee";
sha256 = "3ccfb6fdda1b9d105e775eb19c696be7fec1b3671f9b4f43d02fa14a4c6848dd";
2014-06-30 00:08:34 +00:00
};
# Don't build with miniupnpc due to namecoin using a different verison that
# ships with NixOS and it is API incompatible.
2014-10-01 19:55:40 +00:00
buildInputs = [ db4 boost openssl unzip ];
2014-06-30 00:08:34 +00:00
patchPhase = ''
sed -e 's/-Wl,-Bstatic//g' -e 's/-l gthread-2.0//g' -e 's/-l z//g' -i src/Makefile
'';
buildPhase = ''
make -C src INCLUDEPATHS= LIBPATHS=
'';
installPhase = ''
mkdir -p $out/bin
cp src/namecoind $out/bin
'';
meta = {
description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency";
homepage = "http://namecoin.info";
2014-09-01 22:04:59 +00:00
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.doublec ];
2014-06-30 00:08:34 +00:00
platforms = with stdenv.lib.platforms; linux;
};
}