aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/fpkg/install.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2024-12-30 02:13:28 +0900
committerOphestra <cat@gensokyo.uk>2024-12-30 02:25:04 +0900
commit22a4b996742a99515c2cdf50cbd92d86a8370c4f (patch)
tree83272f8fb945c7b720a21fa05c6289fa59a84c20 /cmd/fpkg/install.go
parent1464ef774b40be0d60e44c8e9ec295d9305c600b (diff)
cmd/fpkg/install: deduplicate nix store
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/fpkg/install.go')
-rw-r--r--cmd/fpkg/install.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/fpkg/install.go b/cmd/fpkg/install.go
index 47d4ffce..7c06461d 100644
--- a/cmd/fpkg/install.go
+++ b/cmd/fpkg/install.go
@@ -139,6 +139,8 @@ func actionInstall(args []string) {
"cp -dRf /nix nix",
// copy from binary cache
"nix copy --offline --no-check-sigs --all --from file://$BUNDLE/res --to $PWD",
+ // deduplicate nix store
+ "nix store --offline --store $PWD optimise",
// make cache directory world-readable for autoetc
"chmod 0755 .",
}, workDir, bundle, pathSet, dropShellInstall, cleanup)