Unverified Commit f1913996 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

arduino-cli: 1.1.1 -> 1.2.0 (#385421)

parents ad5c483a 1b3d8dd3
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -12,13 +12,13 @@ let

  pkg = buildGoModule rec {
    pname = "arduino-cli";
    version = "1.1.1";
    version = "1.2.0";

    src = fetchFromGitHub {
      owner = "arduino";
      repo = "arduino-cli";
      rev = "refs/tags/v${version}";
      hash = "sha256-eHDU1aoLBs3vDfFyM23R5wKNbbCmXrUgavP/JcdNCuM=";
      tag = "v${version}";
      hash = "sha256-7rruSIhKGm2R89Jo1jY+1ZWKloYsL5oaSWuppMKOeFQ=";
    };

    nativeBuildInputs = [ installShellFiles ];
@@ -27,7 +27,7 @@ let

    subPackages = [ "." ];

    vendorHash = "sha256-3NG5+2qgCtmMxOmYS0RROoxajNiZorYL8+qXcDu4e+w=";
    vendorHash = "sha256-uNrkDqw0JoRxe7FuAvQLd7Y4i+nQPhKH0/aWES2+FRc=";

    postPatch =
      let
@@ -58,8 +58,8 @@ let
    ldflags = [
      "-s"
      "-w"
      "-X github.com/arduino/arduino-cli/version.versionString=${version}"
      "-X github.com/arduino/arduino-cli/version.commit=unknown"
      "-X github.com/arduino/arduino-cli/internal/version.versionString=${version}"
      "-X github.com/arduino/arduino-cli/internal/version.commit=unknown"
    ] ++ lib.optionals stdenv.hostPlatform.isLinux [ "-extldflags '-static'" ];

    postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''