Skip to content

Commit

Permalink
filebrowser: 2.23.0 -> 2.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HritwikSinghal committed Sep 2, 2024
1 parent 62d3695 commit 3738910
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions pkgs/applications/networking/filebrowser/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
{ buildGoModule, buildNpmPackage, fetchFromGitHub, lib }:
{
buildGo123Module,
buildNpmPackage,
fetchFromGitHub,
lib,
}:

let
version = "2.31.0";

src = fetchFromGitHub {
owner = "filebrowser";
repo = "filebrowser";
rev = "v${version}";
hash = "sha256-zLM1fLrucIhzGdTTDu81ZnTIipK+iRnPhgfMiT1P+yg=";
};

frontend = buildNpmPackage rec {
pname = "filebrowser-frontend";
version = "2.23.0";

src = fetchFromGitHub {
owner = "filebrowser";
repo = "filebrowser";
rev = "v${version}";
hash = "sha256-xhBIJcEtxDdMXSgQtLAV0UWzPtrvKEil0WV76K5ycBc=";
};
inherit version src;

sourceRoot = "${src.name}/frontend";

npmDepsHash = "sha256-acNIMKHc4q7eiFLPBtKZBNweEsrt+//0VR6dqwXHTvA=";
npmDepsHash = "sha256-5/yEMWkNPAS8/PkaHlPBGFLiJu7xK2GHYo5dYqHAfCE=";

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

Expand All @@ -28,18 +35,11 @@ let
'';
};
in
buildGoModule rec {
buildGo123Module {
pname = "filebrowser";
version = "2.23.0";
inherit version src;

src = fetchFromGitHub {
owner = "filebrowser";
repo = "filebrowser";
rev = "v${version}";
hash = "sha256-xhBIJcEtxDdMXSgQtLAV0UWzPtrvKEil0WV76K5ycBc=";
};

vendorHash = "sha256-MR0ju2Nomb3j78Z+1YcJY+jPd40MZpuOTuQJM94AM8A=";
vendorHash = "sha256-N5aUs8rgTYXeb0qJhPQBCa6lUDkT6lH1bh+1u4bixos=";

excludedPackages = [ "tools" ];

Expand All @@ -55,7 +55,8 @@ buildGoModule rec {
description = "Filebrowser is a web application for managing files and directories";
homepage = "https://filebrowser.org";
license = licenses.asl20;
maintainers = with maintainers; [ nielsegberts ];
maintainers = with maintainers; [ oakenshield ];
mainProgram = "filebrowser";
};
}

0 comments on commit 3738910

Please sign in to comment.