Commit f22d377d authored by Wael Nasreddine's avatar Wael Nasreddine
Browse files

Revert "ncps: workaround older Go version in the master branch"

This reverts commit 0ba37620.
parent c3ee803b
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
  curl,
  dbmate,
  fetchFromGitHub,
  go,
  jq,
  lib,
  makeWrapper,
@@ -30,15 +29,6 @@ buildGoModule (finalAttrs: {
    hash = "sha256-cu7fgzQTpo8aLpK0/kJ3xcCVFCmFMQ6RKwUWW5Zwu6s=";
  };

  # XXX: ncps is built with Go 1.25.6 that is available in release-25.11 but
  # master is currently still using 1.25.5 (update waiting in the
  # staging/staging-next branches.) This is a workaround for this issue and
  # will automatically becomes no-op once Go is updated.
  preBuild = lib.optionalString (go.version == "1.25.5") ''
    sed -e 's:go 1.25.6:go 1.25.5:g' -i go.mod
    sed -e 's:go 1.25.6:go 1.25.5:g' -i nix/dbmate-wrapper/src/go.mod
  '';

  vendorHash = "sha256-QZikr0kE/kvnI4RG02lxVpG4teTg3Uo68st9xLlbfm0=";

  ldflags = [
@@ -112,14 +102,6 @@ buildGoModule (finalAttrs: {

      src = "${finalAttrs.src}/nix/dbmate-wrapper/src";

      # XXX: ncps is built with Go 1.25.6 that is available in release-25.11 but
      # master is currently still using 1.25.5 (update waiting in the
      # staging/staging-next branches.) This is a workaround for this issue and
      # will automatically becomes no-op once Go is updated.
      preBuild = lib.optionalString (go.version == "1.25.5") ''
        sed -e 's:go 1.25.6:go 1.25.5:g' -i go.mod
      '';

      vendorHash = null;

      buildInputs = lib.singleton dbmate;