Skip to content

Commit

Permalink
joinmarket-jam: init 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
seberm committed Sep 16, 2024
1 parent e6e3a96 commit eb964e7
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ let self = {
mempool-frontend
mempool-nginx-conf;
trustedcoin = pkgs.callPackage ./trustedcoin { };
joinmarket-jam = pkgs.callPackage ./joinmarket-jam { };

pyPkgs = import ./python-packages self pkgs.python3;
inherit (self.pyPkgs)
Expand Down
48 changes: 48 additions & 0 deletions pkgs/joinmarket-jam/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
, makeWrapper
}:

buildNpmPackage rec {
pname = "jam";
version = "0.2.0";

src = fetchFromGitHub {
owner = "joinmarket-webui";
repo = pname;
rev = "v${version}";
hash = "sha256-H5g29UJv3+B92m5Fcpa46+81992jKw1Tno2NkGQ7NRM=";
};

npmDepsHash = "sha256-/yBcnG6/x3aXlNOSEa/vIU970YoANYDcHWCRJJPCb+U=";
nativeBuildInputs = [ makeWrapper ];

buildPhase = ''
runHook preBuild
patchShebangs node_modules
export PATH=$PWD/node_modules/.bin:$PATH
./node_modules/.bin/react-scripts build
mkdir -p $out
runHook postBuild
'';

installPhase = ''
runHook preInstall
cp -r build/* $out
runHook postInstall
'';

meta = with lib; {
description = "A web interface for JoinMarket focusing on user-friendliness and ease-of-use.";
homepage = "https://github.com/joinmarket-webui/jam";
license = licenses.mit;
mainProgram = "jam";
maintainers = with maintainers; [ seberm ];
platforms = platforms.unix;
};
}

0 comments on commit eb964e7

Please sign in to comment.