builtins.fetchTarball doesn't unpack

#391
Opened by qyliss at 2024-04-02T12·07+00

% nix-prefetch-url https://github.com/NixOS/nixpkgs/archive/de0bf263cce70074a298ee4672ca3a503d66e39c.tar.gz
[38.7 MiB DL]
path is '/nix/store/k1hz1ry3kilx2wjwpfd39smvz1k9kr62-de0bf263cce70074a298ee4672ca3a503d66e39c.tar.gz'
0da67ik411x65l288dzxscc153n5dndf18fblykxj6dzqmg4qi1x
% nix-prefetch-url --unpack https://github.com/NixOS/nixpkgs/archive/de0bf263cce70074a298ee4672ca3a503d66e39c.tar.gz
unpacking...
[38.7 MiB DL]
path is '/nix/store/xvhpfbb052i66864qw7bww5z8ag11q03-de0bf263cce70074a298ee4672ca3a503d66e39c.tar.gz'
1wh05qqihvmjnykxv8sncxcbim29d6wdx356w1zcwpmhm28rrrrj
% nix-build -E 'builtins.fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/de0bf263cce70074a298ee4672ca3a503d66e39c.tar.gz"; sha256 = "0000000000000000000000000000000000000000000000000000"; }'
error: hash mismatch in file downloaded from 'https://github.com/NixOS/nixpkgs/archive/de0bf263cce70074a298ee4672ca3a503d66e39c.tar.gz':
  wanted: sha256:0000000000000000000000000000000000000000000000000000
  got:    sha256:1wh05qqihvmjnykxv8sncxcbim29d6wdx356w1zcwpmhm28rrrrj
% target/debug/tvix -E 'builtins.fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/de0bf263cce70074a298ee4672ca3a503d66e39c.tar.gz"; sha256 = "0000000000000000000000000000000000000000000000000000"; }'      
note: while evaluating this Nix code
 --> [code]:1:1
  |
1 | builtins.fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/de0bf263cce70074a298ee4672ca3a503d66e39c.tar.gz"; sha256 = "0000000000000000000000000000000000000000000000000000"; }
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E997]: hash mismatch in file downloaded from https://github.com/NixOS/nixpkgs/archive/de0bf263cce70074a298ee4672ca3a503d66e39c.tar.gz:
  wanted: sha256-0000000000000000000000000000000000000000000000000000
     got: sha256-0da67ik411x65l288dzxscc153n5dndf18fblykxj6dzqmg4qi1x
 --> [code]:1:1
  |
1 | builtins.fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/de0bf263cce70074a298ee4672ca3a503d66e39c.tar.gz"; sha256 = "0000000000000000000000000000000000000000000000000000"; }
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  1. qyliss updated the body of this issue at 2024-04-02T12·09+00
  2. This should be done.

    flokli at 2024-04-24T13·18+00

  3. flokli closed this issue at 2024-04-24T13·18+00