11 src = fetchFromGitHub {
15 hash = "sha256-qJIAH8SrB5a7j6ptorEm6fryZj63vDQIUQIgRsVn1us=";
18 web = buildNpmPackage {
19 pname = "${pname}-frontend";
22 npmDepsHash = "sha256-WulYJE2pdVa5hquV/7UjR1z9PkglJXOq5fv8nLa4wos=";
24 # copied from upstream Dockerfile
25 npmInstallFlags = [ "--legacy-peer-deps" ];
26 TSX_COMPILE_ON_ERROR="true";
27 ESLINT_NO_DEV_ERRORS="true";
29 # override npmInstallHook, we only care about the build/ directory
37 inherit pname version src;
39 vendorHash = "sha256-bvisI589Gq9IdyJEqI+uzs3iDPOTUkq95P3n/KoFhF0=";
41 subPackages = [ "cmd/torq" ];
46 "-X github.com/lncapital/torq/build.version=v${version}"
50 mkdir -p $out/web/build
51 cp -r ${web}/* $out/web/build/
55 description = "Capital management tool for lightning network nodes";
56 license = licenses.mit;
57 homepage = "https://github.com/lncapital/torq";
58 maintainers = with maintainers; [ mmilata prusnak ];