Unverified Commit abebc574 authored by Defelo's avatar Defelo
Browse files

sentry-cli: reorder attributes

parent 0c431a2d
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -25,23 +25,31 @@ rustPlatform.buildRustPackage (finalAttrs: {
    hash = "sha256-8fz8bSQxqylTQ7mD/QbQ6gc8qlEdx/SDCjaB3uqFnGA=";
  };

  # Needed to get openssl-sys to use pkgconfig.
  OPENSSL_NO_VENDOR = 1;

  patches = lib.optionals stdenv.hostPlatform.isDarwin [
    (replaceVars ./fix-swift-lib-path.patch { swiftLib = lib.getLib swift; })
  ];

  buildInputs = [ openssl ];
  cargoHash = "sha256-3I0uKHpD4SpSeLSIAEjBxxAFfyS4WIvb76x7QAy53HM=";

  # Needed to get openssl-sys to use pkgconfig.
  env.OPENSSL_NO_VENDOR = 1;

  # By default including `swiftpm` in `nativeBuildInputs` will take over `buildPhase`
  dontUseSwiftpmBuild = true;
  dontUseSwiftpmCheck = true;

  __darwinAllowLocalNetworking = true;

  nativeBuildInputs = [
    installShellFiles
    pkg-config
  ]
  ++ (lib.optionals stdenv.hostPlatform.isDarwin [
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    swift
    swiftpm
  ]);
  ];

  buildInputs = [ openssl ];

  nativeCheckInputs = [ gitMinimal ];

@@ -50,14 +58,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
    "--skip=integration::update::command_update"
  ];

  # By default including `swiftpm` in `nativeBuildInputs` will take over `buildPhase`
  dontUseSwiftpmBuild = true;
  dontUseSwiftpmCheck = true;

  __darwinAllowLocalNetworking = true;

  cargoHash = "sha256-3I0uKHpD4SpSeLSIAEjBxxAFfyS4WIvb76x7QAy53HM=";

  postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
    installShellCompletion --cmd sentry-cli \
        --bash <($out/bin/sentry-cli completions bash) \