fix: Sydnix CLI binary should be called sydnix, not sydnix-cli
This commit is contained in:
10
flake.lock
generated
10
flake.lock
generated
@@ -335,11 +335,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_7": {
|
"nixpkgs_7": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1736012469,
|
"lastModified": 1737632463,
|
||||||
"narHash": "sha256-/qlNWm/IEVVH7GfgAIyP6EsVZI6zjAx1cV5zNyrs+rI=",
|
"narHash": "sha256-38J9QfeGSej341ouwzqf77WIHAScihAKCt8PQJ+NH28=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "8f3e1f807051e32d8c95cd12b9b421623850a34d",
|
"rev": "0aa475546ed21629c4f5bbf90e38c846a99ec9e9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -385,8 +385,8 @@
|
|||||||
"nixpkgs": "nixpkgs_7"
|
"nixpkgs": "nixpkgs_7"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1737768735,
|
"lastModified": 1737870175,
|
||||||
"narHash": "sha256-/jvbkavgRukfbtKA4nKcsZbsqfcGcZxYbG7HN8vFFeE=",
|
"narHash": "sha256-RC8RRdYCSDnmtW+B0tFPWjUKzkX/qB00SkC7R9seGiw=",
|
||||||
"path": "/persist/dots/scripts/sydnix-cli",
|
"path": "/persist/dots/scripts/sydnix-cli",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -23,24 +23,27 @@
|
|||||||
modules = [
|
modules = [
|
||||||
{
|
{
|
||||||
name = "msyds/sydnix-cli";
|
name = "msyds/sydnix-cli";
|
||||||
version = "1.0";
|
version = "1.0.0";
|
||||||
main-ns = "sydnix-cli.main";
|
main-ns = "sydnix-cli.main";
|
||||||
projectSrc = ./.;
|
projectSrc = ./.;
|
||||||
|
|
||||||
nativeImage = {
|
nativeImage = {
|
||||||
|
# Disable for faster build times.
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
# customJdk.enable = true;
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
packages.default = pkgs.symlinkJoin {
|
packages.default = pkgs.symlinkJoin {
|
||||||
name = "sydnix-cli";
|
name = "sydnix-cli";
|
||||||
version = "0.0.0";
|
version = "1.0.0";
|
||||||
paths = [ sydnix-cli-unwrapped ];
|
paths = [ sydnix-cli-unwrapped ];
|
||||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
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 \
|
wrapProgram $out/bin/sydnix \
|
||||||
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.asciidoctor ]}
|
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.asciidoctor ]}
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user