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

10
flake.lock generated
View File

@@ -335,11 +335,11 @@
},
"nixpkgs_7": {
"locked": {
"lastModified": 1736012469,
"narHash": "sha256-/qlNWm/IEVVH7GfgAIyP6EsVZI6zjAx1cV5zNyrs+rI=",
"lastModified": 1737632463,
"narHash": "sha256-38J9QfeGSej341ouwzqf77WIHAScihAKCt8PQJ+NH28=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8f3e1f807051e32d8c95cd12b9b421623850a34d",
"rev": "0aa475546ed21629c4f5bbf90e38c846a99ec9e9",
"type": "github"
},
"original": {
@@ -385,8 +385,8 @@
"nixpkgs": "nixpkgs_7"
},
"locked": {
"lastModified": 1737768735,
"narHash": "sha256-/jvbkavgRukfbtKA4nKcsZbsqfcGcZxYbG7HN8vFFeE=",
"lastModified": 1737870175,
"narHash": "sha256-RC8RRdYCSDnmtW+B0tFPWjUKzkX/qB00SkC7R9seGiw=",
"path": "/persist/dots/scripts/sydnix-cli",
"type": "path"
},

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 ]}
'';