Skip to content

nix-install-package help command suggestions don't work #268

Closed

Description

@bburdette

I'm trying to install this revision of faust:

http://hydra.nixos.org/build/28945388

For installing, I'm looking at the help buttons for the two 'build products' entries. One directs me to use the following command:

`nix-install-package --non-interactive --url http://hydra.nixos.org/build/28945388/nix/pkg/faust-2.0-a41-x86_64-linux.nixpkg`

At first it failed because "http://hydra.nixos.org" was not part of my nix.conf. I fixed that by changing my configration.nix and rebuilding. Now I get this unknown key error:

bburdette@nixosthe1:~/code/faustthings]$ sudo nix-install-package --non-interactive --url http://hydra.nixos.org/build/28945388/nix/pkg/faust-2.0-a41-x86_64-linux.nixpkg
[sudo] password for bburdette: 

Installing package...
installing ‘faust-2.0-a41’
download-from-binary-cache.pl: NAR info file ‘http://hydra.nixos.org/bz3qqy0zr18n3gpyvavb40a5567x1ll4.narinfo’ is signed by unknown key ‘hydra.nixos.org-1’; ignoring
don't know how to build these paths:
  /nix/store/bz3qqy0zr18n3gpyvavb40a5567x1ll4-faust-2.0-a41
download-from-binary-cache.pl: NAR info file ‘http://hydra.nixos.org/bz3qqy0zr18n3gpyvavb40a5567x1ll4.narinfo’ is signed by unknown key ‘hydra.nixos.org-1’; ignoring
error: path ‘/nix/store/bz3qqy0zr18n3gpyvavb40a5567x1ll4-faust-2.0-a41’ does not exist and cannot be created

Installation failed: nix-env failed: 256

[bburdette@nixosthe1:~/code/faustthings]$ 

The other build product is installing a clojure. I downloaded the file, and it directs me to call this command:

gunzip < faust-2.0-a41.closure.gz | nix-store --import

The result is this:

[bburdette@nixosthe1:~/code/faustthings]$ sudo gunzip < faust-2.0-a41.closure.gz | nix-store --import
error: input doesn't look like something created by ‘nix-store --export’

[bburdette@nixosthe1:~/code/faustthings]$ 

Activity

  1. bburdette commented on Feb 4, 2016

    @bburdette
    Author

    Ok turns out that in configuration.nix one should either do this:

    nix.requireSignedBinaryCaches = false;

    Or this:

      nix.binaryCachePublicKeys = [ "hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" ];
      nix.trustedBinaryCaches = [ "http://hydra.nixos.org/" ];
    

    It took a while for this noob to track that down, but found the key thanks to people on IRC. Seems like this should be documented in the popup help along with the actual command to to the install.

  2. changed the title [-]help command suggestions don't work[/-] [+]nix-install-package help command suggestions don't work[/+] on May 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions