Skip to content

Commit 85d66db

Browse files
committed
flash-from-device: workaround build failure for mtdutils
1 parent 5db499e commit 85d66db

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

pkgs/flash-from-device/default.nix

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
{ lib, pkgsStatic, runCommand, tegra-eeprom-tool-static }:
22

33
let
4+
# Workaround build failure with pkgsStatic.mtdutils in NixOS 24.11
5+
# > configure: WARNING: cannot find CMocka library required for unit tests
6+
# > configure: unit tests can optionally be disabled
7+
# > configure: error: missing one or more dependencies
8+
mtdutils = pkgsStatic.mtdutils.overrideAttrs (_: {
9+
configureFlags = [ ];
10+
doCheck = false;
11+
});
12+
413
# Make the package smaller so it doesn't blow up the initrd size
514
staticDeps = runCommand "static-deps" { } ''
615
mkdir -p $out/bin
7-
cp ${pkgsStatic.mtdutils}/bin/mtd_debug $out/bin
8-
cp ${pkgsStatic.mtdutils}/bin/flash_erase $out/bin
16+
cp ${mtdutils}/bin/mtd_debug $out/bin
17+
cp ${mtdutils}/bin/flash_erase $out/bin
918
cp ${tegra-eeprom-tool-static}/bin/tegra-boardspec $out/bin
1019
'';
1120
name = "flash-from-device";

0 commit comments

Comments
 (0)