fix: Sydnix CLI binary should be called sydnix, not sydnix-cli

This commit is contained in:
Madeleine Sydney
2025-01-25 22:48:18 -07:00
parent 3616248c20
commit a83ee39541
2 changed files with 12 additions and 9 deletions

View File

@@ -23,24 +23,27 @@
modules = [
{
name = "msyds/sydnix-cli";
version = "1.0";
version = "1.0.0";
main-ns = "sydnix-cli.main";
projectSrc = ./.;
nativeImage = {
# Disable for faster build times.
enable = true;
};
# customJdk.enable = true;
}
];
};
in {
packages.default = pkgs.symlinkJoin {
name = "sydnix-cli";
version = "0.0.0";
version = "1.0.0";
paths = [ sydnix-cli-unwrapped ];
nativeBuildInputs = [ pkgs.makeWrapper ];
postInstall = ''
postBuild = ''
# The name `sydnix-cli` seems to be automatically chosen by clj-nix.
# Not a fan!
mv $out/bin/sydnix-cli $out/bin/sydnix
wrapProgram $out/bin/sydnix \
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.asciidoctor ]}
'';