Start of single-process hydra-queue-runner

This commit is contained in:
Eelco Dolstra
2015-05-28 17:39:29 +02:00
parent a91cbefda0
commit dc446c3980
10 changed files with 676 additions and 131 deletions

View File

@ -0,0 +1,25 @@
#pragma once
#include "hash.hh"
#include "derivations.hh"
struct BuildProduct
{
nix::Path path, defaultPath;
std::string type, subtype, name;
bool isRegular = false;
nix::Hash sha1hash, sha256hash;
off_t fileSize = 0;
BuildProduct() { }
};
struct BuildResult
{
std::string releaseName;
unsigned long long closureSize = 0, size = 0;
std::list<BuildProduct> products;
};
BuildResult getBuildResult(const nix::Derivation & drv);