summary refs log tree commit diff
path: root/pkgs/applications/misc/namecoin/qt.nix
blob: ac721b955a55434020266c34b7fe679ebb2ea61d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ fetchgit, stdenv, db4, boost, openssl, qt4, unzip, namecoin }:

stdenv.mkDerivation rec {
  version = "0.3.75";
  name = "namecoin-qt-${version}";

  src = namecoin.src;

  # Don't build with miniupnpc due to namecoin using a different verison that
  # ships with NixOS and it is API incompatible.
  buildInputs = [ db4 boost boost.lib openssl unzip qt4 ];

  configurePhase = ''
    qmake USE_UPNP=-
  '';

  buildPhase = ''
    make
  '';

  installPhase = ''
    mkdir -p $out/bin
    cp namecoin-qt $out/bin
  '';

  meta = {
    description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency";
    homepage = "http://namecoin.info";
    license = stdenv.lib.licenses.mit;
    maintainers = [ stdenv.lib.maintainers.doublec ];
    platforms = with stdenv.lib.platforms; linux;
  };
}