-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
dbvisualizer: init at 24.2.2 #344225
base: master
Are you sure you want to change the base?
dbvisualizer: init at 24.2.2 #344225
Conversation
73cc7fe
to
4e2ff38
Compare
Result of 1 package built:
|
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.
Thanks for your contribution. I left the comment about mainProgram
, besides this, lgtm.
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.
You should also split the commit into maintainers: add boldikoller
and dbvisualizer: init at 24.2.2
. ref
e9eac3f
to
44ae773
Compare
Should be fixed, thanks again! |
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.
Thank you for your work! LGTM.
Would it be better to set |
@boldikoller I wonder why we should define strictDeps. |
I am sorry, I must be misunderstanding something. I previously understood Also, is Edit: If this is the case, then I must be doing something wrong, because it does not even build with |
44ae773
to
5a646d1
Compare
5a646d1
to
f2dcfe0
Compare
Is there anything that still needs to be changed? |
@boldikoller always fix ofborg first. |
|
||
nativeBuildInputs = [ makeWrapper ]; | ||
|
||
strictDeps = true; |
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.
Please tell us why this.
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.
I enabled strictDeps
because I was pretty sure it is considered a best practise to enable it? Is it not? Should I disable it? Let me try if that fixes ofborg
@Bot-wxt1221 I do not know how to fix this. The error ofborg gives is Isn't it ran in restricted mode because the license is unfree? Or am I wrong about this? I do not know how I should go about fixing this |
@boldikoller Please run |
@Bot-wxt1221 It builds just fine locally. I've tested before with Are you sure the reason ofborg failing is not because the license is set to unfree? |
@boldikoller Not because of unfree. |
f8a5993
to
7f7941e
Compare
7f7941e
to
be49c23
Compare
@Bot-wxt1221 ofborg has been fixed it. |
b5ae92d
to
8bf2817
Compare
makeDesktopItem, | ||
makeWrapper, | ||
stdenv, | ||
temurin-jre-bin-17, |
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.
Does it have to be Temurin? (i.e. does openjdk17
work?)
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.
It does not need to be temurin. My reasoning was that temurin-jre-bin-17
is 136MB as opposed to openjdk17
which is 470MB. Makes sense, since it is just the runtime as opposed to an sdk.
Probably there is a way to take only the jre from openjdk? When looking through nixpkgs I only found jre17_minimal
as a potential candidate, but I was not sure what minimal
implied. And sure enough, it does not run with jre17_minimal
. Thus I just went for temurin.
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.
Otherwise, seems to run just fine with openjdk17
.
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 removed the JRE-only builds from Nixpkgs a while back as a part of an overall refactor. OpenJDK is preferred since it's something that we built ourselves, rather than Temurin which is a prebuilt, binary-only distribution, and that it's the generic "baseline" for Java packages in Nixpkgs — if there's no special requirements then Nixpkgs packages should always use OpenJDK
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.
Alright then, in the name of uniformity I concede.
It would be nice if there was a way to only include the JRE, however. Maybe as an argument to the openjdk
package in the future? As an override? Ultimately, it's not a big deal, but in this case it basically doubles the download size, which is suboptimal.
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.
After doing some more digging, I think you might be able to make jre_minimal
work by overriding it with more modules, like jre17_minimal.override { modules = [ "java.base" "java.logging" ]; }
. Yes, this is undocumented, yes, this sucks, I'll probably make a separate issue about it
ln -s $out/dbvis $out/bin/ | ||
wrapProgram $out/bin/dbvis --set INSTALL4J_JAVA_HOME ${temurin-jre-bin-17} |
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.
Should it be symlinked, or simply renamed?
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.
That's a good question. In my opinion either can make sense. My reasoning behind symlinking it is that I did not want to modify the layout of the tarball, only add onto it. Maybe that is just silly and it should be mv
d instead.
5e0f410
to
76994db
Compare
76994db
to
639e6bc
Compare
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.