arduino-cli: 1.3.1 -> 1.4.0, use finalAttrs (#469365)
This commit is contained in:
@@ -11,15 +11,15 @@
|
||||
|
||||
let
|
||||
|
||||
pkg = buildGoModule rec {
|
||||
pkg = buildGoModule (finalAttrs: {
|
||||
pname = "arduino-cli";
|
||||
version = "1.3.1";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "arduino";
|
||||
repo = "arduino-cli";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-vUa/Mgztyu5jKVIIhp+Cg79n+ulN94mlfVpxecRb6PA=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-H7vccxDzJt0e/91PIV6Qg8nRD0beb/3g7AZ4uk2ebXU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -31,7 +31,7 @@ let
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
vendorHash = "sha256-msv+ZG6uabTtPDVcRksRd8UTSpoztMKw3YGxvhJr26w=";
|
||||
vendorHash = "sha256-GPZLvEgL/2Ekfj58d8dsbc6e2hHB2zUapvFdIT43hhQ=";
|
||||
|
||||
postPatch =
|
||||
let
|
||||
@@ -62,7 +62,7 @@ let
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/arduino/arduino-cli/internal/version.versionString=${version}"
|
||||
"-X github.com/arduino/arduino-cli/internal/version.versionString=${finalAttrs.version}"
|
||||
"-X github.com/arduino/arduino-cli/internal/version.commit=unknown"
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [ "-extldflags '-static'" ];
|
||||
@@ -75,10 +75,10 @@ let
|
||||
'';
|
||||
|
||||
meta = {
|
||||
inherit (src.meta) homepage;
|
||||
inherit (finalAttrs.src.meta) homepage;
|
||||
description = "Arduino from the command line";
|
||||
mainProgram = "arduino-cli";
|
||||
changelog = "https://github.com/arduino/arduino-cli/releases/tag/${version}";
|
||||
changelog = "https://github.com/arduino/arduino-cli/releases/tag/${finalAttrs.version}";
|
||||
license = with lib.licenses; [
|
||||
gpl3Only
|
||||
asl20
|
||||
@@ -89,7 +89,7 @@ let
|
||||
];
|
||||
};
|
||||
|
||||
};
|
||||
});
|
||||
|
||||
in
|
||||
if stdenv.hostPlatform.isLinux then
|
||||
|
||||
Reference in New Issue
Block a user