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 = {