forked from lix-project/lix
6519f06f39
For instance, you can install Firefox from a specific Nixpkgs revision
like this:
$ nix-env -f 63def04891
.tar.gz -iA firefox
Or build a package from the latest nixpkgs-unstable channel:
$ nix-build https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz -A hello
23 lines
331 B
C++
23 lines
331 B
C++
#pragma once
|
|
|
|
#include "types.hh"
|
|
#include <string>
|
|
|
|
namespace nix {
|
|
|
|
struct DownloadResult
|
|
{
|
|
bool cached;
|
|
string data, etag;
|
|
};
|
|
|
|
DownloadResult downloadFile(string url, string expectedETag = "");
|
|
|
|
Path downloadFileCached(const string & url, bool unpack);
|
|
|
|
MakeError(DownloadError, Error)
|
|
|
|
bool isUri(const string & s);
|
|
|
|
}
|