mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 08:46:16 +02:00
c998e0172f
These methods would previously fail on the other `Installable`s, so moving them to this class is more correct as to where they actually work. Additionally, a `InstallableValueCommand` is created to make it easier (or rather no worse than before) to write commands that just work on `InstallableValue`s. Besides being a cleanup to avoid failing default methods, this gets us closer to https://github.com/NixOS/rfcs/pull/134.
11 lines
243 B
C++
11 lines
243 B
C++
#include "command-installable-value.hh"
|
|
|
|
namespace nix {
|
|
|
|
void InstallableValueCommand::run(ref<Store> store, ref<Installable> installable)
|
|
{
|
|
auto installableValue = InstallableValue::require(installable);
|
|
run(store, installableValue);
|
|
}
|
|
|
|
}
|