Open anatawa12 opened 6 months ago
I'm not too sure what's going on with nix-env in the container and I also can't get nix shell
to work, but nix run
works when enabling flakes and nix-command features:
❯ docker run -it nixos/nix
bash-5.2# nix run \
--extra-experimental-features nix-command \
--extra-experimental-features flakes \
--option extra-substituters 'https://nix-community.cachix.org/' \
--option extra-trusted-public-keys 'nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=' \
github:ryantm/nixpkgs-update -- --help
do you want to allow configuration setting 'extra-substituters' to be set to 'https://nix-community.cachix.org' (y/N)? y
do you want to permanently mark this value as trusted (y/N)? y
do you want to allow configuration setting 'extra-trusted-public-keys' to be set to 'nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=' (y/N)? y
do you want to permanently mark this value as trusted (y/N)? y
nixpkgs-update
Usage: nixpkgs-update COMMAND
Update packages in the Nixpkgs repository
Available options:
-h,--help Show this help text
Available commands:
update Update one package
update-batch Update one package in batch mode.
delete-done Deletes branches from PRs that were merged or closed
version Displays version information for nixpkgs-update and
dependencies
update-vulnerability-db Updates the vulnerability database
check-vulnerable checks if something is vulnerable
check-all-vulnerable checks all packages to update for vulnerabilities
source-github looks for updates on GitHub
fetch-repology fetches update from Repology and prints them to
stdout
I tried to install this package in
nixos/nix
container, error occurs.I'm trying to use nixpkgs-update as suggested on https://github.com/NixOS/nixpkgs/pull/302297#issuecomment-2041437193.