Skip to content

Commit

Permalink
Add 'nix store prefetch-{file,tarball}'
Browse files Browse the repository at this point in the history
These replace nix-prefetch-url and nix-prefetch-url --unpack,
respectively.
  • Loading branch information
edolstra committed Jan 7, 2021
1 parent 0df69d9 commit 0813350
Show file tree
Hide file tree
Showing 6 changed files with 416 additions and 234 deletions.
2 changes: 1 addition & 1 deletion src/libstore/filetransfer.hh
Expand Up @@ -63,7 +63,7 @@ struct FileTransferRequest
std::string mimeType;
std::function<void(std::string_view data)> dataCallback;

FileTransferRequest(const std::string & uri)
FileTransferRequest(std::string_view uri)
: uri(uri), parentAct(getCurActivity()) { }

std::string verb()
Expand Down
232 changes: 0 additions & 232 deletions src/nix-prefetch-url/nix-prefetch-url.cc

This file was deleted.

1 change: 0 additions & 1 deletion src/nix/local.mk
Expand Up @@ -12,7 +12,6 @@ nix_SOURCES := \
$(wildcard src/nix-daemon/*.cc) \
$(wildcard src/nix-env/*.cc) \
$(wildcard src/nix-instantiate/*.cc) \
$(wildcard src/nix-prefetch-url/*.cc) \
$(wildcard src/nix-store/*.cc) \

nix_CXXFLAGS += -I src/libutil -I src/libstore -I src/libfetchers -I src/libexpr -I src/libmain
Expand Down

0 comments on commit 0813350

Please sign in to comment.