File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ stdenvNoCC.mkDerivation (finalAttrs: {
3434 fetchSubmodules = true ;
3535 } ;
3636
37- # --- FIX: Manually fetch the fork containing 'eddsa.c' ---
3837 mbedtlsFork = fetchFromGitHub {
3938 owner = "polhenarejos" ;
4039 repo = "mbedtls" ;
@@ -55,10 +54,15 @@ stdenvNoCC.mkDerivation (finalAttrs: {
5554
5655 postPatch = ''
5756 echo "--- Patching: Neutralizing Git Commands (Global) ---"
58-
5957 find . -name "*.cmake" -o -name "CMakeLists.txt" -print0 | xargs -0 sed -i 's/git submodule update/echo "Nix: Skipped git submodule update"/g'
6058 find . -name "*.cmake" -o -name "CMakeLists.txt" -print0 | xargs -0 sed -i 's/git checkout/echo "Nix: Skipped git checkout"/g'
6159
60+ echo "--- Patching: Applying Libre Keys Branding ---"
61+ # 1. Change Manufacturer Name
62+ sed -i 's/"Pol Henarejos"/"Libre Keys"/g' pico-keys-sdk/src/usb/usb_descriptors.c
63+ # 2. Change URL
64+ sed -i 's|"www.picokeys.com"|"www.github.com/librekeys/picoforge"|g' pico-keys-sdk/src/usb/usb_descriptors.c
65+
6266 ${ lib . optionalString eddsa ''
6367 echo "--- Patching: Injecting EdDSA mbedtls fork (eddsa=true) ---"
6468 rm -rf pico-keys-sdk/mbedtls
You can’t perform that action at this time.
0 commit comments