1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Flip dependency so store-api.hh includes derivations.hh

I think it makes more sense to define the data model (derivations),
before the operations (store api).
This commit is contained in:
John Ericson 2020-03-21 11:07:16 -04:00 committed by John Ericson
parent 0a10854f85
commit bcde5456cc
5 changed files with 6 additions and 7 deletions

View file

@ -1,8 +1,8 @@
#pragma once
#include "path.hh"
#include "types.hh"
#include "hash.hh"
#include "store-api.hh"
#include <map>
@ -76,6 +76,7 @@ struct Derivation : BasicDerivation
class Store;
enum RepairFlag : bool { NoRepair = false, Repair = true };
/* Write a derivation to the Nix store, and return its path. */
StorePath writeDerivation(ref<Store> store,