Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbeaver: remove package #311888

Merged
merged 1 commit into from
May 19, 2024
Merged

dbeaver: remove package #311888

merged 1 commit into from
May 19, 2024

Conversation

Naxdy
Copy link
Contributor

@Naxdy Naxdy commented May 15, 2024

Description of changes

The current version of DBeaver is severely outdated, released in Oct. 2022: https://dbeaver.io/2022/10/10/dbeaver-22-2-2/

Updating DBeaver is non-trivial, so far there have been two incomplete/failed attempts:

The reason for this is that DBeaver does not properly pin its dependencies, and it is not possible for us to do this through simple patches of its source, because subdependencies are also affected by the same problem. We would need something like mvn2nix in nixpkgs to manually pin the entire dependency tree and perform an offline install from a repo we build ourselves (similar to how prefetch-npm-deps and yarn2nix do it).

However, this option does not exist for maven deps in nixpkgs currently, so the only viable alternative left is to remove this version of DBeaver, and perhaps in the future, replace it with a -bin package that we patch or wrap in an FHSEnv.

Lastly, the current version of DBeaver in nixpkgs also fails to build, and is only available through binary cache, so besides being severely outdated, the package is also currently broken.

fixes #267405
Closes #232348
Closes #249293

Related tracking issue: #278518

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.05 Release Notes (or backporting 23.05 and 23.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
  • Fits CONTRIBUTING.md.

Add a 馃憤 reaction to pull requests you find important.

@Naxdy Naxdy force-pushed the work/remove-dbeaver branch 3 times, most recently from a148835 to c1aa991 Compare May 15, 2024 09:23
@Naxdy Naxdy marked this pull request as ready for review May 15, 2024 09:26
Copy link
Member

@yayayayaka yayayayaka left a comment

Choose a reason for hiding this comment

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

Diff looking fine by me. I have edited the description so that merging this PR will close #232348 and #249293.

Copy link
Contributor

@gepbird gepbird left a comment

Choose a reason for hiding this comment

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

dbeaver-bin just got merged, can you rebase to master and make an alias for it?

pkgs/top-level/aliases.nix Outdated Show resolved Hide resolved
@mkg20001 mkg20001 merged commit 7d96a91 into NixOS:master May 19, 2024
20 checks passed
tomcur added a commit to tomcur/nixos-configuration that referenced this pull request May 22, 2024
Replace dbeaver with dbeaver-bin. See:
- NixOS/nixpkgs#311888
- NixOS/nixpkgs#311968
@hraban
Copy link
Contributor

hraban commented May 30, 2024

Painful but understandable. Thank you.

@RaghavSood
Copy link
Member

@hraban dbeaver-bin is available instead if you were relying on this, just fyi

@hraban
Copy link
Contributor

hraban commented May 30, 2024

I am on darwin so unfortunately that doesn't work for me. I've pinned the last nixpkgs where it was available. Thanks though!

@gepbird
Copy link
Contributor

gepbird commented May 30, 2024

@hraban dbeaver has prebuild .dmg files for aarch64-darwin and x86_64-darwin: https://github.com/dbeaver/dbeaver/releases/tag/24.0.5.

Feel free to add support for it in dbeaver-bin :)

@hraban
Copy link
Contributor

hraban commented May 30, 2024

@hraban dbeaver has prebuild .dmg files for aarch64-darwin and x86_64-darwin: https://github.com/dbeaver/dbeaver/releases/tag/24.0.5.

Feel free to add support for it in dbeaver-bin :)

One day ;) when the current pin breaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dbeaver: dependencies can no longer be fetched
7 participants