flake: Update, Live-Preview beim build
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
{
|
||||
packages.default = pkgs.stdenv.mkDerivation {
|
||||
pname = "info.belastodon.social";
|
||||
version = "0.1.0";
|
||||
version = "0.2.0";
|
||||
src = self;
|
||||
|
||||
nativeBuildInputs = [ (pkgs.emacsPackages.emacsWithPackages (epkgs: [ epkgs.org ])) ];
|
||||
@@ -28,5 +28,12 @@
|
||||
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}
|
||||
'');
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user