save works

This commit is contained in:
Rongsong Shen 2026-03-03 16:49:26 +08:00
parent f4b1ba4cd7
commit acfbec875b
51 changed files with 622 additions and 1175 deletions

View file

@ -27,11 +27,35 @@
xpkgs = import ./nixSupport/default.nix {
inherit pkgs myCommitId;
};
appImageScriptContent = builtins.readFile ./tools/appimage/entry.sh;
appImageEntryPackage = pkgs.writeShellApplication {
name = "xce";
runtimeInputs = with pkgs; [
xpkgs.xcecore
coreutils-full
which
bash
gzip
glow
haproxy
];
text = appImageScriptContent;
derivationArgs = {
postInstall = ''
mkdir -p $out/share
cp docs/* $out/share/
'';
};
meta = {
mainProgram = "xce";
};
};
in rec {
packages = pkgs // xpkgs;
defaultPackage = xpkgs.xce_debug;
packages = pkgs // xpkgs // { xce = appImageEntryPackage; };
defaultPackage = xpkgs.xcecore_debug;
devShells.default = pkgs.mkShell {
nativeBuildInputs = xpkgs.xce.nativeBuildInputs;
nativeBuildInputs = xpkgs.xcecore.nativeBuildInputs;
};
devShell = self.devShells.${system}.default;