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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minecraft-server: 1.14 -> 1.14.3 #63848

Merged
merged 1 commit into from Jul 13, 2019
Merged

Conversation

lheckemann
Copy link
Member

Also removes older versions from the top level of nixpkgs. They can
still be accessed via minecraft-server-versions. This allows leaving
all-packages.nix alone in future server bumps.

cc @thoughtpolice @tomberek @costrouc — would very much appreciate your input on this because it's a minor breaking change.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@costrouc
Copy link
Member

costrouc commented Jun 27, 2019

I have no problem with this being done. But is this pattern being done for other software? For example postgresql has multiple versions in the all-packages namespace. https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L14635. Obviously postgresql versions are more important that minecraft-server versions so rules may not apply to this package.

@lheckemann
Copy link
Member Author

I don't know of any cases where this is done currently. TBH, I think the best option would probably be to remove the older versions from nixpkgs entirely and only have the latest.

@costrouc
Copy link
Member

costrouc commented Jul 9, 2019

@infinisil and @calbrecht have any thoughts on removing older versions of minecraft server? My thoughts are that older versions are valuable since diferent server versions are entirely different minecraft worlds

@infinisil
Copy link
Member

Actually, people can always use older versions by using an older nixpkgs version, which is really unproblematic because of how Nix works. So even though only recently these multiple versions have been introduced, I wouldn't mind only having the latest version in the future.

@costrouc
Copy link
Member

costrouc commented Jul 9, 2019

Great point. Sounds good with me to remove the old versions

inherit (callPackages ../games/minecraft-server { })
minecraft-server_1_14
minecraft-server_1_13_2
minecraft-server_1_12_2;
Copy link
Member

@infinisil infinisil Jul 10, 2019

Choose a reason for hiding this comment

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

Would you mind adding aliases for these? I think it's good practice to strive for backwards compatibility, deprecation and better error messages

Copy link
Member Author

Choose a reason for hiding this comment

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

I would mind:

  • It's cruft
  • We have precedent for removing old minecraft server versions without notice: c7b36b7
  • This pull request is to master, which goes to unstable, and isn't expected to maintain backwards compatibility.

Copy link
Member

Choose a reason for hiding this comment

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

Okay well I'm okay with doing it in this case, because these versions have only been introduced recently and aren't in the last release.

Also removes older versions.
@infinisil infinisil merged commit 807a62e into NixOS:master Jul 13, 2019
@lheckemann lheckemann deleted the mc-server-bump branch July 13, 2019 04:30
@nixos-discourse
Copy link

This pull request has been mentioned on Nix community. There might be relevant details there:

https://discourse.nixos.org/t/howto-setting-up-a-nixos-minecraft-server-using-the-newest-version-of-minecraft/3445/3

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.

None yet

4 participants