Fix static build

This commit is contained in:
Eelco Dolstra 2022-06-23 18:00:10 +02:00
parent f959ce3e03
commit 03002203b7
4 changed files with 7 additions and 10 deletions

View file

@ -110,7 +110,10 @@
bzip2 xz brotli editline
openssl sqlite
libarchive
libzip
(libzip.overrideDerivation (old: {
# Temporary workaround for https://github.com/NixOS/nixpkgs/pull/178755
cmakeFlags = old.cmakeFlags ++ [ "-DBUILD_REGRESS=0" ];
}))
boost
lowdown-nix
gtest

View file

@ -12,10 +12,6 @@ InputAccessor::InputAccessor()
{ }
// FIXME: merge with archive.cc.
const std::string narVersionMagic1 = "nix-archive-1";
static std::string caseHackSuffix = "~nix~case~hack~";
void InputAccessor::dumpPath(
const CanonPath & path,
Sink & sink,

View file

@ -35,10 +35,6 @@ static ArchiveSettings archiveSettings;
static GlobalConfig::Register rArchiveSettings(&archiveSettings);
const std::string narVersionMagic1 = "nix-archive-1";
static std::string caseHackSuffix = "~nix~case~hack~";
PathFilter defaultPathFilter = [](const Path &) { return true; };

View file

@ -102,7 +102,9 @@ void copyNAR(Source & source, Sink & sink);
void copyPath(const Path & from, const Path & to);
extern const std::string narVersionMagic1;
inline constexpr std::string_view narVersionMagic1 = "nix-archive-1";
inline constexpr std::string_view caseHackSuffix = "~nix~case~hack~";
}