From e0784fad5f822b4665c26b8e4eeadf29f57fb9aa Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 7 Nov 2024 15:19:51 -0500 Subject: [PATCH] identity: run checks --- pkgs/by-name/id/identity/package.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/by-name/id/identity/package.nix b/pkgs/by-name/id/identity/package.nix index 6b6d90647d56..b34219b9a851 100644 --- a/pkgs/by-name/id/identity/package.nix +++ b/pkgs/by-name/id/identity/package.nix @@ -48,6 +48,7 @@ stdenv.mkDerivation rec { ninja pkg-config rustc + rustPlatform.cargoCheckHook rustPlatform.cargoSetupHook wrapGAppsHook4 ]; @@ -66,6 +67,20 @@ stdenv.mkDerivation rec { libseccomp ]; + mesonBuildType = "release"; + + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; + cargoCheckType = if (finalAttrs.mesonBuildType != "debug") then "release" else "debug"; + + checkPhase = '' + runHook preCheck + + cargoCheckHook + mesonCheckPhase + + runHook postCheck + ''; + passthru.updateScript = nix-update-script { }; meta = {