add zip packaging

This commit is contained in:
41666 2024-04-07 00:01:58 -04:00
parent cd9e41d407
commit 8bb64756ef
2 changed files with 16 additions and 1 deletions

View file

@ -77,6 +77,18 @@
];
patchFlags = "-p1 -F5";
});
tachikoma-fe-zip = akkoma-frontends.tachikoma-fe.overrideAttrs (final: prev: {
buildInputs = with pkgs; [
zip
];
installPhase = ''
mkdir $out/
cd dist
zip -r $out/tachikoma-fe.zip .
'';
});
});
};
}

View file

@ -5,4 +5,7 @@ build-be:
nix build .#akkoma.tachikoma
build-fe:
nix build .#akkoma-frontends.tachikoma-fe
nix build .#akkoma-frontends.tachikoma-fe
package-fe:
nix build .#tachikoma-fe-zip