flake: Update, Live-Preview beim build

This commit is contained in:
leo
2026-07-24 17:47:11 +02:00
parent cddb6a3352
commit f68dfb6841
+8 -1
View File
@@ -14,7 +14,7 @@
{ {
packages.default = pkgs.stdenv.mkDerivation { packages.default = pkgs.stdenv.mkDerivation {
pname = "info.belastodon.social"; pname = "info.belastodon.social";
version = "0.1.0"; version = "0.2.0";
src = self; src = self;
nativeBuildInputs = [ (pkgs.emacsPackages.emacsWithPackages (epkgs: [ epkgs.org ])) ]; nativeBuildInputs = [ (pkgs.emacsPackages.emacsWithPackages (epkgs: [ epkgs.org ])) ];
@@ -28,5 +28,12 @@
cp -r public/* $out/ cp -r public/* $out/
''; '';
}; };
apps.default = {
type = "app";
program = toString (pkgs.writeShellScript "preview-server" ''
${pkgs.python3}/bin/python3 -m http.server 8000 --directory ${self.packages.${system}.default}
'');
};
}); });
} }