about summary refs log tree commit diff
path: root/pkgs/applications/misc/freicoin/default.nix
blob: d5ed057f56b8b3a3e9533c0778f726261a56b028 (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
{ fetchurl, stdenv, db4, boost, gmp, mpfr, miniupnpc, qt4, unzip }:

stdenv.mkDerivation rec {
  version = "0.8.3-1";
  name = "freicoin-${version}";

  src = fetchurl {
    url = "https://github.com/freicoin/freicoin/archive/v${version}.zip";
    sha256 = "0v3mh8a96nnb86mkyaylyjj7qfdrl7i9gvybh7f8w2hrl9paszfh";
  };

  # I think that openssl and zlib are required, but come through other
  # packages
  buildInputs = [ db4 boost gmp mpfr miniupnpc qt4 unzip ];

  configurePhase = "qmake";

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

  meta = {
    description = "Peer-to-peer currency with demurrage fee";
    homepage = "http://freicoi.in/";
    license = "MIT";
    maintainers = with stdenv.lib.maintainers; [viric];
    platforms = with stdenv.lib.platforms; linux;
  };
}