torq: drop

This commit is contained in:
Andreas Zweili 2024-11-24 12:40:15 +01:00
parent 811c0af5f5
commit ce7cc9146e
3 changed files with 3 additions and 61 deletions

View File

@ -760,6 +760,8 @@
rather than dotnet 6. For packages that still need dotnet 6, use
`dotnet-sdk_6`, etc.
- torq has been removed because upstreamed went closed source.
## Other Notable Changes {#sec-release-24.11-notable-changes}
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->

View File

@ -1,61 +0,0 @@
{ lib
, buildGoModule
, buildNpmPackage
, fetchFromGitHub
}:
let
pname = "torq";
version = "0.18.19";
src = fetchFromGitHub {
owner = "lncapital";
repo = pname;
rev = "v${version}";
hash = "sha256-qJIAH8SrB5a7j6ptorEm6fryZj63vDQIUQIgRsVn1us=";
};
web = buildNpmPackage {
pname = "${pname}-frontend";
inherit version;
src = "${src}/web";
npmDepsHash = "sha256-WulYJE2pdVa5hquV/7UjR1z9PkglJXOq5fv8nLa4wos=";
# copied from upstream Dockerfile
npmInstallFlags = [ "--legacy-peer-deps" ];
TSX_COMPILE_ON_ERROR="true";
ESLINT_NO_DEV_ERRORS="true";
# override npmInstallHook, we only care about the build/ directory
installPhase = ''
mkdir $out
cp -r build/* $out/
'';
};
in
buildGoModule rec {
inherit pname version src;
vendorHash = "sha256-bvisI589Gq9IdyJEqI+uzs3iDPOTUkq95P3n/KoFhF0=";
subPackages = [ "cmd/torq" ];
ldflags = [
"-s"
"-w"
"-X github.com/lncapital/torq/build.version=v${version}"
];
postInstall = ''
mkdir -p $out/web/build
cp -r ${web}/* $out/web/build/
'';
meta = with lib; {
description = "Capital management tool for lightning network nodes";
license = licenses.mit;
homepage = "https://github.com/lncapital/torq";
maintainers = with maintainers; [ mmilata prusnak ];
mainProgram = "torq";
};
}

View File

@ -1227,6 +1227,7 @@ mapAliases {
tokyo-night-gtk = tokyonight-gtk-theme; # Added 2024-01-28
tomcat_connectors = apacheHttpdPackages.mod_jk; # Added 2024-06-07
tor-browser-bundle-bin = tor-browser; # Added 2023-09-23
torq = throw "torq has been removed because the project went closed source"; # Added 2024-11-24
transmission = lib.warn (transmission3Warning {}) transmission_3; # Added 2024-06-10
transmission-gtk = lib.warn (transmission3Warning {suffix = "-gtk";}) transmission_3-gtk; # Added 2024-06-10
transmission-qt = lib.warn (transmission3Warning {suffix = "-qt";}) transmission_3-qt; # Added 2024-06-10