diff --git a/crane.nix b/crane.nix index f7abf6e..fba29a5 100644 --- a/crane.nix +++ b/crane.nix @@ -108,6 +108,7 @@ let license = licenses.asl20; maintainers = with maintainers; [ zhaofengli ]; platforms = platforms.linux ++ platforms.darwin; + mainProgram = "attic"; }; passthru = { @@ -147,6 +148,10 @@ let CARGO_PROFILE_RELEASE_LTO = "fat"; CARGO_PROFILE_RELEASE_CODEGEN_UNITS = "1"; + + meta = { + mainProgram = "atticd"; + }; } // extraArgs); # Attic interacts with Nix directly and its tests require trusted-user access diff --git a/package.nix b/package.nix index e40c765..1614316 100644 --- a/package.nix +++ b/package.nix @@ -70,5 +70,6 @@ in rustPlatform.buildRustPackage rec { license = licenses.asl20; maintainers = with maintainers; [ zhaofengli ]; platforms = platforms.linux ++ platforms.darwin; + mainProgram = "attic"; }; }