Skip to content

jetbrains.jdk-bin: init at 1751.21#152723

Closed
lutzmor wants to merge 5 commits intoNixOS:masterfrom
lutzmor:darwin_jetbrains_sdk_fix
Closed

jetbrains.jdk-bin: init at 1751.21#152723
lutzmor wants to merge 5 commits intoNixOS:masterfrom
lutzmor:darwin_jetbrains_sdk_fix

Conversation

@lutzmor
Copy link

@lutzmor lutzmor commented Dec 30, 2021

Update jetbrains.sdk to be workable on darwin as well, the build process of the source variant used on linux is broken. So update to binary one for darwin.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin ( should also work used a binary dependend the arch )
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

This pr should fix the problem described here: #84263

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Dec 30, 2021
@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Dec 30, 2021
@ofborg ofborg bot requested review from a user and edwtjo December 30, 2021 15:23
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Dec 30, 2021
removed it because i thought it inherits from sourcebuild but brain lag ...
@@ -0,0 +1,43 @@
{ lib, openjdk11, fetchurl, jetbrains, stdenv }:

openjdk11.overrideAttrs (oldAttrs: rec {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do an override of the (source build?) openjdk expression? Just use stdenvNoCC.mkDerivation.

url = "https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-${darwinVersion}.tar.gz";
sha256 = if stdenv.isAarch64 then "65807ed92397cd92e1381c49039af443d713874e1ec8efd6e92e370514e56861" else "654dd3126e67de8605a7cd94a3ebc713365cc1d63ab6156dd65f0249b064e37a";
};
patches = [];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
patches = [];

Comment on lines +19 to +21
postFixup = ''
'';

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
postFixup = ''
'';

'';
homepage = "https://confluence.jetbrains.com/display/JBR/JetBrains+Runtime";
inherit (openjdk11.meta) license platforms mainProgram;
maintainers = with maintainers; [ edwtjo petabyteboy ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
maintainers = with maintainers; [ edwtjo petabyteboy ];
maintainers = with maintainers; [ ];

But please be encouraged to add yourself.

}) // {
jdk = callPackage ../development/compilers/jetbrains-jdk { };
sourcebuild = callPackage ../development/compilers/jetbrains-jdk/default.nix { };
prebuild = callPackage ../development/compilers/jetbrains-jdk/prebuild.nix { };
Copy link
Member

@veprbl veprbl Jan 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our usual language for this is "build vs binary", so:

Suggested change
prebuild = callPackage ../development/compilers/jetbrains-jdk/prebuild.nix { };
jdk-bin = callPackage ../development/compilers/jetbrains-jdk/bin.nix { };

@veprbl veprbl changed the title fix for broken build of jetbrains sdk on darwin jetbrains.jdk-bin: init at 1751.21 Jan 3, 2022
@lutzmor
Copy link
Author

lutzmor commented Jan 4, 2022

@veprbl thx for the inputs! Will change that when my new macbook is here ( the old one died yesterday ).

@lutzmor
Copy link
Author

lutzmor commented Jan 7, 2022

@veprbl i would close this PR ( i thought about the way i resolved the underlaying problem and don't like it ) will try to fix the underlaying problem why the jdk couldn't build on osx and will do a new pr. So its a proper fix to the problem without the need to switch to a binary package.

@lutzmor lutzmor closed this Jan 7, 2022
@veprbl
Copy link
Member

veprbl commented Jan 7, 2022

A source build would be preferred, indeed.

@lutzmor lutzmor deleted the darwin_jetbrains_sdk_fix branch January 7, 2022 17:27
@Janik-Haag Janik-Haag added the 12.first-time contribution This PR is the author's first one; please be gentle! label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants