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

r128gain: add unfree derivation to download test files #120788

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AluisioASG
Copy link
Contributor

r128gain downloads unredistributable media files during testing. After multiple attempts to ease the testing workflow, I've settled on providing an unfree derivation that gets built when the user explicitly enables the check phase (i.e. nix-build -E '(import ./. {}).r128gain.override { doCheck = true; }').

I'm not sure that this is the best way to do it, so I'm looking for feedback.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@AluisioASG AluisioASG force-pushed the aasg/test-r128gain branch 2 times, most recently from b5d4194 to f4b788e Compare May 10, 2021 16:52
@AluisioASG AluisioASG marked this pull request as ready for review May 10, 2021 16:52
Comment on lines 34 to 36
# Testing downloads unredistributable media files for testing,
# so it's not done by default, but an easy escape hatch is
# provided .
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
# Testing downloads unredistributable media files for testing,
# so it's not done by default, but an easy escape hatch is
# provided .
# Testing downloads unredistributable media files for testing,
# so it's not done by default but an easy escape hatch is provided.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decided to rephrase that comment instead to hint at what is needed to run the tests.

r128gain downloads unredistributable media files during testing.  After
multiple attempts to ease the testing workflow for it, I've settled on
providing an unfree derivation that gets built when the user explicitly
enables the check phase.
@stale
Copy link

stale bot commented Nov 9, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 10.rebuild-darwin: 0 10.rebuild-linux: 0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants