[Nix-dev] flashplayer won't install from unstable channel

Tony White tonywhite100 at googlemail.com
Fri Aug 7 16:27:26 CEST 2009


2009/8/7 Bill Trost <trost at cloud.rain.com>:
>  # nix-env  -i flashplayer
>  installing `flashplayer-10.0.22.87'
>  the following derivations will be built:
>   /nix/store/1gvb99w1jl1jsb8l5mg4dcnniplji368-install_flash_player_10_linux.tar.gz.drv
>   /nix/store/h6vbwl91b79qnvn5r7gr3n6hqlrxazpw-flashplayer-10.0.22.87.drv
>  building path(s) `/nix/store/7s1qisscfjmvxrmlpxfkwh0z8hnvagkv-install_flash_player_10_linux.tar.gz'
>
>  trying http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
>                                  Dload  Upload   Total   Spent    Left  Speed
>  100 3949k  100 3949k    0     0   565k      0  0:00:06  0:00:06 --:--:--  578k
>  output path `/nix/store/7s1qisscfjmvxrmlpxfkwh0z8hnvagkv-install_flash_player_10_linux.tar.gz' should have sha256 hash `cd29f166c87fecc943e88fe951bb61c56728fab12b4bf343badafa73ea95394e', instead has `88aea5d73c5be37328a388630f8b89c256235c4f8337eef15ed523bbe3e5dada'
>  cannot build derivation `/nix/store/h6vbwl91b79qnvn5r7gr3n6hqlrxazpw-flashplayer-10.0.22.87.drv': 1 dependencies couldn't be built
>  error: build of `/nix/store/h6vbwl91b79qnvn5r7gr3n6hqlrxazpw-flashplayer-10.0.22.87.drv' failed
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at cs.uu.nl
> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>

Hi Bill,
That's easy, it just means that the software has been updated upstream
(To patch a very important security vunerability IIRC.)
When packages fail like this because the target download is changing
every release, nix usually pulls the binary straight from hydra or a
backup of the source archive from hydra.
Obviously that didn't happen, either because it is non-free software
or there just wasn't a binary built.  Maybe Adobe issued one update
after another really fast (Within days?)

You can fix it easily on your machine by downloading the file
http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
into your home directory (nix-env -i wget if you need a console
downloader, if you don't have x and a browser) Then do :
sha256sum install_flash_player_10_linux.tar.gz
in the directory containing the file.
The output is the new sha256 checksum that you can add to
nixpkgs/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-10/default.nix
You edit default.nix as root, copy and paste the new checksum over the
old one and then save.
You should then be able to nix-env  -i flashplayer but if you want
flashplayer in a browser then icecatWrapper or firefoxWrapper might be
more useful instead. You can also delete
install_flash_player_10_linux.tar.gz once you've check summed it.
That's all you need it for.
It's at that point an svn commit to the nixpkgs you are running off
with the new working revision which fixes the problem could be made,
because you've fixed it.

Hope that helps,
Tony



More information about the nix-dev mailing list