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

flashplayer: fix hashes #43412

Merged
merged 2 commits into from Jul 13, 2018
Merged

flashplayer: fix hashes #43412

merged 2 commits into from Jul 13, 2018

Conversation

taku0
Copy link
Contributor

@taku0 taku0 commented Jul 12, 2018

Motivation for this change

Hashes have been changed (see also #43394).
Moreover, plugin-container of Firefox requires a few libraries for Flash player.

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 nox --run "nox-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)

  • Fits CONTRIBUTING.md.

  • Built packages

    • nix-env -i -f . -A pkgs.flashplayer
    • nix-build -I nixpkgs=. -A pkgsi686Linux.flashplayer
    • nix-build -I nixpkgs=. -E "(import <nixpkgs> {}).flashplayer.override { debug = true; }"
    • nix-build -I nixpkgs=. -E "(import <nixpkgs> {}).pkgsi686Linux.flashplayer.override { debug = true; }"
    • nix-build -I nixpkgs=. -A pkgs.flashplayer-standalone
    • nix-build -I nixpkgs=. -A pkgs.flashplayer-standalone-debugger
    • nix-build -I nixpkgs=. -E "(import <nixpkgs> {}).chromium.override { enablePepperFlash = true; }"
  • Played a video with Firefox and Chromium (x86_64).

  • Checked the version with Firefox, Chromium, flashplayer-standalone, and flashplayer-standalone-debugger (x86_64) http://www.adobe.com/software/flash/about/


@oxij
Copy link
Member

oxij commented Jul 12, 2018 via email

@taku0
Copy link
Contributor Author

taku0 commented Jul 13, 2018

@volth you have to add --flat option when invoking nix-hash:

$ nix-hash --type sha256 --base32 flash_player_npapi_linux.x86_64.tar.gz
08z7a3m0crd9z2rp6cm9q002dpi5vphcgp0607k9wix0sr5zfvyh

$ nix-hash --type sha256 --base32 --flat flash_player_npapi_linux.x86_64.tar.gz
0331r5af4zrvwc4h7dp5qyy91dfam5z03yjggls3x04i10nz5myw

fixed-output derivation produced path '/nix/store/a6cdgphvd35y5bv62ba3j7q0fwi9jgd1-flash_player_npapi_linux.x86_64.tar.gz' with sha256 hash '0331r5af4zrvwc4h7dp5qyy91dfam5z03yjggls3x04i10nz5myw' instead of the expected hash '08z7a3m0crd9z2rp6cm9q002dpi5vphcgp0607k9wix0sr5zfvyh'

@xeji xeji merged commit 1e4cd7a into NixOS:master Jul 13, 2018
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