]> git.scottworley.com Git - tattlekey/commitdiff
client: Use standard <nixpkgs>
authorScott Worley <scottworley@scottworley.com>
Fri, 29 Sep 2023 19:31:25 +0000 (12:31 -0700)
committerScott Worley <scottworley@scottworley.com>
Wed, 11 Oct 2023 01:47:27 +0000 (18:47 -0700)
Do the "fetchSubmodules = true;" override here

client/default.nix

index 58b928e77e1d832a92d55ff787f31de311e9d813..322cf6667cd58bc12eaaa14620aade0fd1b71ce4 100644 (file)
@@ -1,4 +1,4 @@
-{ pkgs ? import ~/devel/nixpkgs { }, }:
+{ pkgs ? import <nixpkgs> { }, }:
 let
   cc = pkgs.pkgsCross.arm-embedded.stdenv.cc;
   tattlekey = { lib, stdenv, cmake, pico-sdk, python3 }:
 let
   cc = pkgs.pkgsCross.arm-embedded.stdenv.cc;
   tattlekey = { lib, stdenv, cmake, pico-sdk, python3 }:
@@ -11,8 +11,20 @@ let
         "-DCMAKE_C_COMPILER=${cc}/bin/arm-none-eabi-cc"
         "-DCMAKE_CXX_COMPILER=${cc}/bin/arm-none-eabi-c++"
         "-DPICO_BOARD=pico_w"
         "-DCMAKE_C_COMPILER=${cc}/bin/arm-none-eabi-cc"
         "-DCMAKE_CXX_COMPILER=${cc}/bin/arm-none-eabi-c++"
         "-DPICO_BOARD=pico_w"
-        "-DPICO_SDK_PATH=${pico-sdk.override { minimal = false; }}/lib/pico-sdk"
+        "-DPICO_SDK_PATH=${pico-sdk}/lib/pico-sdk"
         "-DPICO_TOOLCHAIN_PATH=${cc}/bin"
       ];
     };
         "-DPICO_TOOLCHAIN_PATH=${cc}/bin"
       ];
     };
-in pkgs.callPackage tattlekey {}
+
+  pico-sdk = pkgs.pico-sdk.overrideAttrs (old: rec {
+    version = "1.5.1";
+    src = pkgs.fetchFromGitHub {
+      fetchSubmodules = true;
+      owner = "raspberrypi";
+      repo = "pico-sdk";
+      rev = version;
+      hash = "sha256-GY5jjJzaENL3ftuU5KpEZAmEZgyFRtLwGVg3W1e/4Ho=";
+    };
+  });
+
+in pkgs.callPackage tattlekey { inherit pico-sdk; }