Skip to content

Instantly share code, notes, and snippets.

@k0001
Created May 22, 2018 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k0001/f484b77971d6a31bb8eba29134780f90 to your computer and use it in GitHub Desktop.
Save k0001/f484b77971d6a31bb8eba29134780f90 to your computer and use it in GitHub Desktop.
Error with builtins.fetchTarball
k@z1:/tmp% cat nixpkgs-src.nix
# NixOS 18.03, 22 May 2018
builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/cee73f524b9535ee1deef1c725df2c7029c45545.tar.gz";
sha256 = "00lilp101mw0ndrbdpc2mqnzzjf3qvly9lgh2cq8n0xjvqynyip0";
}
k@z1:/tmp% nix-prefetch-url https://github.com/NixOS/nixpkgs/archive/cee73f524b9535ee1deef1c725df2c7029c45545.tar.gz
path is '/nix/store/0nqvfl5kyz0g8yb4nnb2bn4104v4jzsz-cee73f524b9535ee1deef1c725df2c7029c45545.tar.gz'
00lilp101mw0ndrbdpc2mqnzzjf3qvly9lgh2cq8n0xjvqynyip0
k@z1:/tmp% nix build -f nixpkgs-src.nix --show-trace
error: while evaluating the file '/tmp/nixpkgs-src.nix':
store path mismatch in file downloaded from 'https://github.com/NixOS/nixpkgs/archive/cee73f524b9535ee1deef1c725df2c7029c45545.tar.gz'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment