Skip to content

Commit

Permalink
Merge pull request NixOS#68315 from jluttine/nano-wallet-19.0
Browse files Browse the repository at this point in the history
nano-wallet: 18.0 -> 19.0
  • Loading branch information
mmahut committed Sep 8, 2019
2 parents 916603c + fa0b187 commit df3b84a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions pkgs/applications/blockchains/nano-wallet/default.nix
@@ -1,15 +1,16 @@
{lib, stdenv, fetchFromGitHub, cmake, pkgconfig, boost, libGL, qtbase}:
{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig, wrapQtAppsHook, boost, libGL
, qtbase}:

stdenv.mkDerivation rec {

pname = "nano-wallet";
version = "18.0";
version = "19.0";

src = fetchFromGitHub {
owner = "nanocurrency";
repo = "raiblocks";
rev = "V${version}";
sha256 = "03f9g1x7rs7vic9yzsjxsh5ddx9ys78rssbfghbccfw9qrwylh3y";
sha256 = "1y5fc4cvfqh33imjkh91sqhy5bb9kh0icwyvdgm1cl564vnjax80";
fetchSubmodules = true;
};

Expand All @@ -32,13 +33,19 @@ stdenv.mkDerivation rec {
optionToFlag = name: value: "-D${name}=${value}";
in lib.mapAttrsToList optionToFlag options;

nativeBuildInputs = [ cmake pkgconfig ];
nativeBuildInputs = [ cmake pkgconfig wrapQtAppsHook ];
buildInputs = [ boost libGL qtbase ];

buildPhase = ''
make nano_wallet
'';

# Move executables under bin directory
postInstall = ''
mkdir -p $out/bin
mv $out/nano* $out/bin/
'';

checkPhase = ''
./core_test
'';
Expand Down

0 comments on commit df3b84a

Please sign in to comment.