pico-sdk: switch to finalAttrs pattern.
No change otherwise.
This commit is contained in:
parent
c755861181
commit
8946018b03
@ -1,21 +1,21 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "pico-sdk";
|
pname = "pico-sdk";
|
||||||
version = "1.5.1";
|
version = "1.5.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "raspberrypi";
|
owner = "raspberrypi";
|
||||||
repo = pname;
|
repo = "pico-sdk";
|
||||||
rev = version;
|
rev = finalAttrs.version;
|
||||||
sha256 = "sha256-JNcxd86XNNiPkvipVFR3X255boMmq+YcuJXUP4JwInU=";
|
hash = "sha256-JNcxd86XNNiPkvipVFR3X255boMmq+YcuJXUP4JwInU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
# SDK contains libraries and build-system to develop projects for RP2040 chip
|
# SDK contains libraries and build-system to develop projects for RP2040 chip
|
||||||
# We only need to compile pioasm binary
|
# We only need to compile pioasm binary
|
||||||
sourceRoot = "${src.name}/tools/pioasm";
|
sourceRoot = "${finalAttrs.src.name}/tools/pioasm";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
@ -32,4 +32,4 @@ stdenv.mkDerivation rec {
|
|||||||
maintainers = with maintainers; [ muscaln ];
|
maintainers = with maintainers; [ muscaln ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user