mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 15:26:17 +02:00
Merge pull request #5111 from Pamplemousse/clean
Minor maintenance cleaning
This commit is contained in:
commit
8943e3176d
3 changed files with 0 additions and 16 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -57,9 +57,6 @@ perl/Makefile.config
|
||||||
|
|
||||||
/src/nix-prefetch-url/nix-prefetch-url
|
/src/nix-prefetch-url/nix-prefetch-url
|
||||||
|
|
||||||
# /src/nix-daemon/
|
|
||||||
/src/nix-daemon/nix-daemon
|
|
||||||
|
|
||||||
/src/nix-collect-garbage/nix-collect-garbage
|
/src/nix-collect-garbage/nix-collect-garbage
|
||||||
|
|
||||||
# /src/nix-channel/
|
# /src/nix-channel/
|
||||||
|
|
|
@ -3645,9 +3645,7 @@ void EvalState::createBaseEnv()
|
||||||
if (!evalSettings.pureEval) {
|
if (!evalSettings.pureEval) {
|
||||||
mkInt(v, time(0));
|
mkInt(v, time(0));
|
||||||
addConstant("__currentTime", v);
|
addConstant("__currentTime", v);
|
||||||
}
|
|
||||||
|
|
||||||
if (!evalSettings.pureEval) {
|
|
||||||
mkString(v, settings.thisSystem.get());
|
mkString(v, settings.thisSystem.get());
|
||||||
addConstant("__currentSystem", v);
|
addConstant("__currentSystem", v);
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,17 +130,6 @@ AutoCloseFD openFile(const Path & path)
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct FileSource : FdSource
|
|
||||||
{
|
|
||||||
AutoCloseFD fd2;
|
|
||||||
|
|
||||||
FileSource(const Path & path)
|
|
||||||
: fd2(openFile(path))
|
|
||||||
{
|
|
||||||
fd = fd2.get();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
ref<const ValidPathInfo> BinaryCacheStore::addToStoreCommon(
|
ref<const ValidPathInfo> BinaryCacheStore::addToStoreCommon(
|
||||||
Source & narSource, RepairFlag repair, CheckSigsFlag checkSigs,
|
Source & narSource, RepairFlag repair, CheckSigsFlag checkSigs,
|
||||||
std::function<ValidPathInfo(HashResult)> mkInfo)
|
std::function<ValidPathInfo(HashResult)> mkInfo)
|
||||||
|
|
Loading…
Reference in a new issue