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

most installation methods fail #355

Open
domenkozar opened this issue Jul 6, 2023 · 1 comment
Open

most installation methods fail #355

domenkozar opened this issue Jul 6, 2023 · 1 comment

Comments

@domenkozar
Copy link

❯ nix run \
  --option extra-substituters 'https://nixpkgs-update.cachix.org/' \
  --option extra-trusted-public-keys 'nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8=' \
  -f https://github.com/ryantm/nixpkgs-update/archive/main.tar.gz \
  -c nixpkgs-update --help
error: unrecognised flag '-c'
Try 'nix --help' for more information.
❯ nix shell \
  --option extra-substituters 'https://nixpkgs-update.cachix.org/' \
  --option extra-trusted-public-keys 'nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8=' \
  -f https://github.com/ryantm/nixpkgs-update/archive/main.tar.gz \
  -c nixpkgs-update --help
error: opening file '/nix/store/ijx5h2wj636095c69x8qswh8wzxh6yac-source/default.nix': No such file or directory
❯ nix-env \
  --option extra-substituters 'https://nixpkgs-update.cachix.org/' \
  --option extra-trusted-public-keys 'nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8=' \
  -if https://github.com/ryantm/nixpkgs-update/archive/main.tar.gz
error: cannot evaluate a function that has an argument without a value ('mkDerivation')
       Nix attempted to evaluate a function as a top level expression; in
       this case it must have its arguments supplied either by default
       values, or passed explicitly with '--arg' or '--argstr'. See
       https://nixos.org/manual/nix/stable/language/constructs.html#functions.

       at /nix/store/ijx5h2wj636095c69x8qswh8wzxh6yac-source/nixpkgs-update.nix:1:3:

            1| { mkDerivation, aeson, base, bytestring, conduit, containers
             |   ^
            2| , cryptohash-sha256, directory, doctest, errors, filepath, github
@EtienneBruines
Copy link

When removing the unrecognized flag -c:

$ nix run --option extra-substituters 'https://nixpkgs-update.cachix.org/'   --option extra-trusted-public-keys 'nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8='   -f https://github.com/ryantm/nixpkgs-update/archive/main.tar.gz   nixpkgs-update 
error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override

When then adding that:

$ nix run --extra-experimental-features nix-command  --option extra-substituters 'https://nixpkgs-update.cachix.org/'   --option extra-trusted-public-keys 'nixpkgs-update.cachix.org-1:6y6Z2JdoL3APdu6/+Iy8eZX2ajf09e4EE9SnxSML1W8='   -f https://github.com/ryantm/nixpkgs-update/archive/main.tar.gz   nixpkgs-update 
warning: ignoring untrusted substituter 'https://nixpkgs-update.cachix.org/'
error: opening file '/nix/store/ijx5h2wj636095c69x8qswh8wzxh6yac-source/default.nix': No such file or directory

(Which then matches the error message at the nix shell option.)

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

No branches or pull requests

2 participants