-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jellyseerr: 1.9.2 -> 2.1.0 #360844
Merged
+97
−364
Merged
jellyseerr: 1.9.2 -> 2.1.0 #360844
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
lib, | ||
pnpm_9, | ||
fetchFromGitHub, | ||
stdenv, | ||
makeWrapper, | ||
nodejs_20, | ||
python3, | ||
sqlite, | ||
nix-update-script, | ||
}: | ||
|
||
let | ||
nodejs = nodejs_20; | ||
pnpm = pnpm_9.override { inherit nodejs; }; | ||
in | ||
stdenv.mkDerivation rec { | ||
pname = "jellyseerr"; | ||
version = "2.1.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Fallenbagel"; | ||
repo = "jellyseerr"; | ||
rev = "v${version}"; | ||
hash = "sha256-5kaeqhjUy9Lgx4/uFcGRlAo+ROEOdTWc2m49rq8R8Hs="; | ||
}; | ||
|
||
pnpmDeps = pnpm.fetchDeps { | ||
inherit pname version src; | ||
hash = "sha256-xu6DeaBArQmnqEnIgjc1DTZujQebSkjuai9tMHeQWCk="; | ||
}; | ||
|
||
buildInputs = [ sqlite ]; | ||
|
||
nativeBuildInputs = [ | ||
python3 | ||
nodejs | ||
makeWrapper | ||
pnpm.configHook | ||
]; | ||
|
||
preBuild = '' | ||
export npm_config_nodedir=${nodejs} | ||
pushd node_modules | ||
pnpm rebuild bcrypt sqlite3 | ||
popd | ||
''; | ||
|
||
buildPhase = '' | ||
runHook preBuild | ||
pnpm build | ||
pnpm prune --prod --ignore-scripts | ||
rm -rf .next/cache | ||
runHook postBuild | ||
''; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
mkdir -p $out/share | ||
cp -r -t $out/share .next node_modules dist public package.json overseerr-api.yml | ||
runHook postInstall | ||
''; | ||
|
||
postInstall = '' | ||
mkdir -p $out/bin | ||
makeWrapper '${nodejs}/bin/node' "$out/bin/jellyseerr" \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of setting |
||
--add-flags "$out/share/dist/index.js" \ | ||
--chdir "$out/share" \ | ||
--set NODE_ENV production | ||
''; | ||
|
||
passthru.updateScript = nix-update-script { }; | ||
|
||
meta = with lib; { | ||
description = "Fork of overseerr for jellyfin support"; | ||
homepage = "https://github.com/Fallenbagel/jellyseerr"; | ||
longDescription = '' | ||
Jellyseerr is a free and open source software application for managing | ||
requests for your media library. It is a a fork of Overseerr built to | ||
bring support for Jellyfin & Emby media servers! | ||
''; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ camillemndn ]; | ||
platforms = platforms.linux; | ||
mainProgram = "jellyseerr"; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use the
CONFIG_DIRECTORY
environmental variable to accomplish the same, so we don't have to make a bind mount. I'm doing that here as well.