From c30055bb94d7570f231b95fd96fc5f94fbc815ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Niemier?= <~@hauleth.dev> Date: Thu, 7 Aug 2025 23:27:02 +0200 Subject: [PATCH] Create publication script to create directory instead of link --- flake.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flake.nix b/flake.nix index 4bbe848..c7b3bc3 100644 --- a/flake.nix +++ b/flake.nix @@ -24,6 +24,14 @@ }; in { + apps.publish = let + program = pkgs.writeShellScript "publish" '' + cp -r ${self.packages.${system}.blog} public + ''; + in { + type = "app"; + program = "${program}"; + }; packages = { inherit blog; }; -- 2.51.2