From b3a76bc237bb2c4854a276ee210fcd2fb80655f6 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Mon, 14 Oct 2024 10:23:29 -0600 Subject: [PATCH] package: Add mainProgram --- crane.nix | 5 +++++ package.nix | 1 + 2 files changed, 6 insertions(+) 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"; }; }