Always use NixOS/nixpkgs instead of NixOS/nixpkgs-channels (#208)

Links in the search results for NixOS 20.09 started throwing 404
otherwise. Not all channels are being pushed to nixpkgs-channels as
apparently it is being phased out.
This commit is contained in:
Andreas Rammhold 2020-10-07 02:26:07 +02:00 committed by GitHub
parent a2c570e52e
commit 33c2c8a837
Failed to generate hash of commit
3 changed files with 4 additions and 4 deletions

View file

@ -395,7 +395,7 @@ def get_packages(evaluation, evaluation_builds):
)
result = subprocess.run(
shlex.split(
f"nix-env -f '<nixpkgs>' -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/{evaluation['git_revision']}.tar.gz --arg config 'import {CURRENT_DIR}/packages-config.nix' -qa --json"
f"nix-env -f '<nixpkgs>' -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/{evaluation['git_revision']}.tar.gz --arg config 'import {CURRENT_DIR}/packages-config.nix' -qa --json"
),
stdout=subprocess.PIPE,
check=True,
@ -498,7 +498,7 @@ def get_packages(evaluation, evaluation_builds):
def get_options(evaluation):
result = subprocess.run(
shlex.split(
f"nix-build <nixpkgs/nixos/release.nix> --no-out-link -A options -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/{evaluation['git_revision']}.tar.gz"
f"nix-build <nixpkgs/nixos/release.nix> --no-out-link -A options -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/{evaluation['git_revision']}.tar.gz"
),
stdout=subprocess.PIPE,
check=True,

View file

@ -213,7 +213,7 @@ viewResultItemDetails channel item =
code [] [ text value ]
githubUrlPrefix branch =
"https://github.com/NixOS/nixpkgs-channels/blob/" ++ branch ++ "/"
"https://github.com/NixOS/nixpkgs/blob/" ++ branch ++ "/"
cleanPosition value =
if String.startsWith "source/" value then

View file

@ -254,7 +254,7 @@ viewResultItemDetails channel item =
a [ href value ] [ text value ]
githubUrlPrefix branch =
"https://github.com/NixOS/nixpkgs-channels/blob/" ++ branch ++ "/"
"https://github.com/NixOS/nixpkgs/blob/" ++ branch ++ "/"
cleanPosition value =
if String.startsWith "source/" value then