Unverified Commit 910abb15 authored by Defelo's avatar Defelo
Browse files
parent bb0cd351
Loading
Loading
Loading
Loading
+8 −9
Original line number Diff line number Diff line
@@ -13,14 +13,14 @@

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "radicle-ci-broker";
  version = "0.21.0";
  version = "0.22.0";

  src = fetchFromRadicle {
    seed = "seed.radicle.xyz";
    repo = "zwTxygwuz5LDGBq255RA2CbNGrz8";
    node = "z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV";
    tag = "v${finalAttrs.version}";
    hash = "sha256-c0Qo6dnR9rP4mLXODkNZp+AnhKS0tqJeh1KgzfHBRV4=";
    hash = "sha256-ylgOnDQRjQrG9Dngo/N6nGOnNcKgFtN9hT96yryHn0I=";
    leaveDotGit = true;
    postFetch = ''
      git -C $out rev-parse --short HEAD > $out/.git_head
@@ -28,11 +28,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
    '';
  };

  cargoHash = "sha256-9MkZh1hlHgLC9rGmLx5ehtLtZfhXsCqrJrCJNr1edBU=";
  cargoHash = "sha256-Ykf8vk/5KcZcudbKkU/Ht4gPtmG45b60IorKL90RjAA=";

  postPatch = ''
    substituteInPlace build.rs \
      --replace-fail "let hash = " "let hash = \"$(<$src/.git_head)\"; "

    substituteInPlace ci-broker.md \
      --replace-fail 'PATH: /bin' "" \
      --replace-fail '"PATH": "/bin"' ""
  '';

  preCheck = ''
@@ -46,12 +50,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
    radicle-node
  ];

  checkFlags = [
    "--skip=acceptance_criteria_for_upgrades"
    "--skip=logs_adapter_stderr_output"
    "--skip=process_queued_events"
    "--skip=runs_adapter_with_configuration"
  ];
  checkFlags = [ "--skip=acceptance_criteria_for_upgrades" ];

  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "--version";