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

firefox-bin: Add gpg verification to updater #22270

Merged
merged 1 commit into from Feb 19, 2017

Conversation

grahamc
Copy link
Member

@grahamc grahamc commented Jan 29, 2017

Motivation for this change

Turns out the sha's changed because of build2 vs build3:

http://ftp.mozilla.org/pub/firefox/candidates/51.0.1-candidates/build3/SHA512SUMS vs http://ftp.mozilla.org/pub/firefox/candidates/51.0.1-candidates/build2/SHA512SUMS

(thanks to jcristau on mozilla's IRC for answering my question on a weekend! :) )

Made this PR as a sanity-check in the future. Opinions?

cc @taku0 @garbas @ttuegel @joachifm

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • 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/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@grahamc, thanks for your PR! By analyzing the history of the files in this pull request, we identified @taku0, @garbas and @mythmon to be potential reviewers.

@grahamc
Copy link
Member Author

grahamc commented Jan 29, 2017

cc #22266 #22248

Copy link
Member

@garbas garbas left a comment

Choose a reason for hiding this comment

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

💯 maybe also include new sha's for firefox-[beta-]bin

, baseName ? "firefox"
, basePath ? "pkgs/applications/networking/browsers/firefox-bin"
, basePath ? "pkgs/applications/networking/browsers/firefox-bin"
, baseUrl ? "http://archive.mozilla.org/pub/firefox/releases/"
}:

let
version = (builtins.parseDrvName name).version;
isBeta = builtins.stringLength version + 1 == builtins.stringLength (builtins.replaceStrings ["b"] ["bb"] version);
in writeScript "update-${baseName}-bin" ''
Copy link
Member

Choose a reason for hiding this comment

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

could you please turn this writeScript which I created some time ago to normal mkDerivation so that nobody seems the horrible PATH trickery I had to do ;)

@zimbatm
Copy link
Member

zimbatm commented Feb 19, 2017

merging as it's an improvement on the status-quo

@zimbatm zimbatm merged commit a21455d into NixOS:master Feb 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants