From 9d772bbf969520685df980f7ce318219d78f5701 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 2 Jun 2022 14:41:36 +0200 Subject: [PATCH] Remove 'nix flake archive' This is because flakes are no longer substitutable. --- src/nix/flake.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/nix/flake.cc b/src/nix/flake.cc index 4f6dfb89b..f97fa8cd6 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -863,6 +863,7 @@ struct CmdFlakeClone : FlakeCommand } }; +#if 0 struct CmdFlakeArchive : FlakeCommand, MixJSON, MixDryRun { std::string dstUri; @@ -897,8 +898,6 @@ struct CmdFlakeArchive : FlakeCommand, MixJSON, MixDryRun StorePathSet sources; - throw UnimplementedError("flake archive"); - #if 0 sources.insert(flake.flake.sourceInfo->storePath); if (jsonRoot) jsonRoot->attr("path", store->printStorePath(flake.flake.sourceInfo->storePath)); @@ -929,9 +928,9 @@ struct CmdFlakeArchive : FlakeCommand, MixJSON, MixDryRun ref dstStore = dstUri.empty() ? openStore() : openStore(dstUri); copyPaths(*store, *dstStore, sources); } - #endif } }; +#endif struct CmdFlakeShow : FlakeCommand, MixJSON { @@ -1193,7 +1192,7 @@ struct CmdFlake : NixMultiCommand {"init", []() { return make_ref(); }}, {"new", []() { return make_ref(); }}, {"clone", []() { return make_ref(); }}, - {"archive", []() { return make_ref(); }}, + //{"archive", []() { return make_ref(); }}, {"show", []() { return make_ref(); }}, {"prefetch", []() { return make_ref(); }}, })