mirror of
https://github.com/NixOS/nix.git
synced 2025-11-10 04:26:01 +01:00
This will facilitate breaking up Nix into multiple packages for each component with Meson.
23 lines
473 B
C++
23 lines
473 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "installable-value.hh"
|
|
#include "command.hh"
|
|
|
|
namespace nix {
|
|
|
|
/**
|
|
* An InstallableCommand where the single positional argument must be an
|
|
* InstallableValue in particular.
|
|
*/
|
|
struct InstallableValueCommand : InstallableCommand
|
|
{
|
|
/**
|
|
* Entry point to this command
|
|
*/
|
|
virtual void run(ref<Store> store, ref<InstallableValue> installable) = 0;
|
|
|
|
void run(ref<Store> store, ref<Installable> installable) override;
|
|
};
|
|
|
|
}
|