mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-05 04:10:19 +00:00
filebrowser-quantum: 1.5.2-stable -> 2.0.2-stable (#578487)
This commit is contained in:
@@ -250,6 +250,8 @@
|
||||
|
||||
- `comodoro` has been updated from 0.1.2 to 2.0.0, which brings the breaking changes of both major releases; see the [upstream changelog](https://github.com/pimalaya/comodoro/blob/v2.0.0/CHANGELOG.md).
|
||||
|
||||
- `filebrowser-quantum` has been updated from `1.5.2-stable` to `2.0.2-stable`, which requires a database migration and config changes. See the [migration guide](https://filebrowserquantum.com/en/docs/getting-started/v2/migration/) and the [upstream changelog](https://github.com/gtsteffaniak/filebrowser/blob/v2.0.0-stable/CHANGELOG.md) before upgrading.
|
||||
|
||||
- `tengine` has been removed as it has seen seriously delayed responses to security vulnerabilities.
|
||||
|
||||
- `jellyfin` has been upgraded to major version 12, which contains breaking changes. See the [upstream blog post](https://jellyfin.org/posts/jellyfin-release-12.0) for more information on how to safely upgrade.
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildGoModule,
|
||||
buildGo127Module,
|
||||
buildNpmPackage,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
let
|
||||
version = "1.5.2-stable";
|
||||
version = "2.0.2-stable";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gtsteffaniak";
|
||||
repo = "filebrowser";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-1qG6IayTqL4x3CqJyvVSG8Fu4s6ywhWI9t1j9c+wTZM=";
|
||||
hash = "sha256-xzbEB0V+0Yfmc42dAAGMCfSIwPaWoNgwAKYcSFINcmc=";
|
||||
};
|
||||
|
||||
frontend = buildNpmPackage {
|
||||
@@ -21,12 +21,12 @@ let
|
||||
inherit version src;
|
||||
|
||||
sourceRoot = "${src.name}/frontend";
|
||||
npmDepsHash = "sha256-J1PddXU79T0GVcAgxYEW/vraqYxbTvASw8RmW8dDeOw=";
|
||||
npmDepsHash = "sha256-ZJZtHaeNpHV7n3cT0m7YmBuIGM8CObp3IdQWdSiqbKc=";
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
npm run build:docker
|
||||
npm run build:docker -- --outDir dist
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
@@ -42,19 +42,31 @@ let
|
||||
};
|
||||
|
||||
in
|
||||
buildGoModule {
|
||||
buildGo127Module {
|
||||
pname = "filebrowser-quantum";
|
||||
inherit version src;
|
||||
|
||||
sourceRoot = "${src.name}/backend";
|
||||
|
||||
vendorHash = "sha256-YAMh0WMe1zDCJq8BuPcekb1J8RvRoxOmsZarKI1ZWcs=";
|
||||
excludedPackages = [ "/scripts/" ];
|
||||
|
||||
vendorHash = "sha256-P3H5kESEd1X5tl0EQyIm680fKz/18KegoPBp1jb69vo=";
|
||||
|
||||
# Tests open database fixtures in _docker for writing
|
||||
postUnpack = ''
|
||||
chmod -R u+w ${src.name}/_docker
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
mkdir -p http/embed
|
||||
cp -r ${frontend}/* http/embed/
|
||||
cp -r ${frontend}/* internal/web/embed/
|
||||
'';
|
||||
|
||||
# goModules inherits preBuild, which would make it depend on the frontend;
|
||||
# nix-update then records the npmDepsHash mismatch as vendorHash
|
||||
overrideModAttrs = {
|
||||
preBuild = "";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
mv $out/bin/backend $out/bin/filebrowser-quantum
|
||||
'';
|
||||
@@ -62,11 +74,19 @@ buildGoModule {
|
||||
ldflags = [
|
||||
"-w"
|
||||
"-s"
|
||||
"-X github.com/gtsteffaniak/filebrowser/backend/version.CommitSHA=testingCommit"
|
||||
"-X github.com/gtsteffaniak/filebrowser/backend/version.Version=testing"
|
||||
"-X github.com/gtsteffaniak/filebrowser/backend/internal/version.CommitSHA=testingCommit"
|
||||
"-X github.com/gtsteffaniak/filebrowser/backend/internal/version.Version=testing"
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
passthru = {
|
||||
inherit frontend;
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--subpackage"
|
||||
"frontend"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Access and manage your files from the web";
|
||||
|
||||
Reference in New Issue
Block a user