-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
beszel: 0.12.3 -> 0.12.9 #445185
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
beszel: 0.12.3 -> 0.12.9 #445185
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,15 +5,21 @@ | |
| nix-update-script, | ||
| buildNpmPackage, | ||
| }: | ||
| let | ||
| githubTag = "0.12.9"; | ||
| sourceHash = "sha256-uyNY8vvagIINEVFKzoGB4oxvOIYwIg80yso8UDc1e/w="; | ||
| npmHash = "sha256-2zpJgkDXZoMWI6SkcfrhzozAITUR9ZUVtMbRtYKM13w="; | ||
| goHash = "sha256-8Sr7MYQnIfNx9hvfjCTYKQOUZIBxpGPbsR75jEB0mbk="; | ||
| in | ||
| buildGoModule rec { | ||
|
Contributor
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.
|
||
| pname = "beszel"; | ||
| version = "0.12.3"; | ||
| version = githubTag; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "henrygd"; | ||
| repo = "beszel"; | ||
| tag = "v${version}"; | ||
| hash = "sha256-rthaufUL0JX3sE2hdrcJ8J73DLK4/2wMR+uOs8GoX2A="; | ||
| hash = sourceHash; | ||
| }; | ||
|
|
||
| webui = buildNpmPackage { | ||
|
|
@@ -45,18 +51,21 @@ buildGoModule rec { | |
| runHook postInstall | ||
| ''; | ||
|
|
||
| sourceRoot = "${src.name}/beszel/site"; | ||
| sourceRoot = "${src.name}/internal/site"; | ||
|
|
||
| npmDepsHash = "sha256-6J1LwRzwbQyXVBHNgG7k8CQ67JZIDqYreDbgfm6B4w4="; | ||
| npmDepsHash = npmHash; | ||
| }; | ||
|
|
||
| sourceRoot = "${src.name}/beszel"; | ||
| sourceRoot = "${src.name}"; | ||
|
|
||
| vendorHash = "sha256-Nd2jDlq+tdGrgxU6ZNgj9awAb+G/yDqY1J15dpMcjtw="; | ||
| vendorHash = goHash; | ||
|
|
||
| # TODO remove when #441125 is merged into master | ||
| postPatch = ''substituteInPlace go.mod --replace "go 1.25.1" "go 1.25.0"''; | ||
|
Contributor
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. #441125 is merged into master !
Contributor
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. Thanks for the hint! I was able to make some final tweaks and make it build! |
||
|
|
||
| preBuild = '' | ||
| mkdir -p site/dist | ||
| cp -r ${webui}/* site/dist | ||
| mkdir -p internal/site/dist | ||
| cp -r ${webui}/* internal/site/dist | ||
| ''; | ||
|
|
||
| postInstall = '' | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
Also regardin the
nix-update-script, maybe anextraArgsargument should be passed down, so thewebuialso gets updated with the script (could be the cause for now auto-updates being triggered).Something like this should work:
If you want, you can put in this commit too, or I can make a separate PR after this gets merged (with 0.12.10 maybe?) since the folder structure changed...
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.
Honestly I'm really new to writing nix modules so I don't think I understand what whis does, or your comment about
recandfinalAttrs:PThere 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.
This change would enable it to auto-update in the future and we don't have to fetch the correct hash values. Regarding the other comment, maybe look at this version of the nix file: