Commit 2385e73c authored by Thiago Kenji Okada's avatar Thiago Kenji Okada
Browse files

flood: repackage using buildNpmPackage



Related issue: #229475

Co-authored-by: default avatarWinter <winter@winter.cafe>
parent 4f530892
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
{ lib
, buildNpmPackage
, fetchFromGitHub
}:

buildNpmPackage rec {
  pname = "flood";
  version = "4.7.0";

  src = fetchFromGitHub {
    owner = "jesec";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-BR+ZGkBBfd0dSQqAvujsbgsEPFYw/ThrylxUbOksYxM=";
  };

  npmDepsHash = "sha256-tuEfyePwlOy2/mOPdXbqJskO6IowvAP4DWg8xSZwbJw=";

  NODE_OPTIONS = "--openssl-legacy-provider";

  meta = with lib; {
    description = "Modern web UI for various torrent clients with a Node.js backend and React frontend";
    homepage = "https://flood.js.org";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ thiagokokada winter ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ mapAliases {
  bibtex-tidy = pkgs.bibtex-tidy; # added 2023-07-30
  bitwarden-cli = pkgs.bitwarden-cli; # added 2023-07-25
  eslint_d = pkgs.eslint_d; # Added 2023-05-26
  flood = pkgs.flood; # Added 2023-07-25
  gtop = pkgs.gtop; # added 2023-07-31
  manta = pkgs.node-manta; # Added 2023-05-06
  readability-cli = pkgs.readability-cli; # Added 2023-06-12
+0 −1
Original line number Diff line number Diff line
@@ -140,7 +140,6 @@
, "fixjson"
, "fkill-cli"
, "fleek-cli"
, "flood"
, "forever"
, "fx"
, "ganache"
+0 −18
Original line number Diff line number Diff line
@@ -107221,24 +107221,6 @@ in
    bypassCache = true;
    reconstructLock = true;
  };
  flood = nodeEnv.buildNodePackage {
    name = "flood";
    packageName = "flood";
    version = "4.7.0";
    src = fetchurl {
      url = "https://registry.npmjs.org/flood/-/flood-4.7.0.tgz";
      sha512 = "MAm4Yok64VPa49DM+0TxBBP0mScW5ILGCsY/HJLbATjHEkJFnwD1mkPndruZxO1vXBaFdPzoLl+gYThAUxWQjA==";
    };
    buildInputs = globalBuildInputs;
    meta = {
      description = "A modern Web UI for various torrent clients with multi-user and multi-client support";
      homepage = "https://github.com/jesec/flood#readme";
      license = "GPL-3.0-only";
    };
    production = true;
    bypassCache = true;
    reconstructLock = true;
  };
  forever = nodeEnv.buildNodePackage {
    name = "forever";
    packageName = "forever";
+0 −4
Original line number Diff line number Diff line
@@ -162,10 +162,6 @@ final: prev: {
    nativeBuildInputs = lib.optionals stdenv.isDarwin  [ pkgs.xcbuild ];
  };

  flood = prev.flood.override {
    buildInputs = [ final.node-pre-gyp ];
  };

  git-ssb = prev.git-ssb.override (oldAttrs: {
    buildInputs = [ final.node-gyp-build ];
    meta = oldAttrs.meta // { broken = since "10"; };
Loading