Fetch from the nixpkgs repo instead of nixpkgs-channels

nixpkgs-channels is deprecated.
This commit is contained in:
Jonas Nick 2020-12-06 21:42:20 +00:00
parent ff7f5cc3bd
commit 8e268c5ced
No known key found for this signature in database
GPG Key ID: 4861DBF262123605
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
rev=$1 rev=$1
sha256=$(nix-prefetch-url --unpack https://github.com/nixos/nixpkgs-channels/archive/$rev.tar.gz) sha256=$(nix-prefetch-url --unpack https://github.com/nixos/nixpkgs/archive/$rev.tar.gz)
echo "rev = \"$rev\";" echo "rev = \"$rev\";"
echo "sha256 = \"$sha256\";" echo "sha256 = \"$sha256\";"

View File

@ -1,7 +1,7 @@
let let
fetch = { rev, sha256 }: fetch = { rev, sha256 }:
builtins.fetchTarball { builtins.fetchTarball {
url = "https://github.com/nixos/nixpkgs-channels/archive/${rev}.tar.gz"; url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
inherit sha256; inherit sha256;
}; };
in in