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

flac: 1.4.3 -> 1.5.0; modernize derivation #381219

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from
Open

Conversation

KSJ2000
Copy link
Contributor

@KSJ2000 KSJ2000 commented Feb 11, 2025

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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 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.

Copy link
Contributor

@ruuda ruuda left a comment

Choose a reason for hiding this comment

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

Thanks! I think the release is still in progress, if the website is going to be updated shortly, then we can reduce the number of changes needed here.

Comment on lines +19 to 24
src = fetchFromGitHub {
owner = "xiph";
repo = "flac";
tag = finalAttrs.version;
hash = "sha256-B6XRai5UOAtY/7JXNbI3YuBgazi1Xd2ZOs6vvLq9LIs=";
};
Copy link
Contributor

Choose a reason for hiding this comment

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

The release on GitHub is very recent, I expect https://xiph.org/flac/download.html will be updated as well with the new release later, so we can continue to take it from there.

Copy link
Contributor Author

@KSJ2000 KSJ2000 Feb 12, 2025

Choose a reason for hiding this comment

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

Let's not do that for two reasons:

  1. Github seems to be the primary place of the source code, so that is where it will be first and foremost
  2. I have yet to forget the xz incident and I hope you haven't either


CFLAGS = [
"-O3"
"-funroll-loops"
];
CXXFLAGS = [ "-O3" ];

# doCheck = true; # takes lots of time
doCheck = false; # takes lots of time
Copy link
Contributor

Choose a reason for hiding this comment

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

I don’t know why it ended up being commented, but if the tests were enabled previously, why disable them now?

bsd3
fdl13Only
gpl2Only
lgpl21Only
Copy link
Contributor

Choose a reason for hiding this comment

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

In at least this file, it’s LGPL 2.1 or later.

license = with lib.licenses; [
bsd3
fdl13Only
gpl2Only
Copy link
Contributor

Choose a reason for hiding this comment

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

In at least this file, it’s GPL 2 or later.

homepage = "https://xiph.org/flac/";
description = "Library and tools for encoding and decoding the FLAC lossless audio file format";
changelog = "https://xiph.org/flac/changelog.html";
Copy link
Contributor

Choose a reason for hiding this comment

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

I expect the website will be updated for 1.5, if it’s not there in a few days we can ask on the mailing list what the plans are. (I haven’t seen an announcement there yet, so I suppose the release is still in progress.) I would keep the metadata pointing at the website as long as it’s up to date, I think the xiph.org domain carries a bit more weight than a GitHub repository.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

xiph domain may carry more weight, but like that, this will be the changelog for version 1.5.0:
https://xiph.org/flac/changelog.html
when it could have been:
https://github.com/xiph/flac/releases/tag/1.5.0

meanwhile, this could have been the changelog for version 1.3.3:
https://github.com/xiph/flac/releases/tag/1.3.3
but it's this:
https://xiph.org/flac/changelog.html (have fun scrolling)

if I haven't changed your mind, I will revert it

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.

2 participants