File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 3737
3838 cargoHash = "sha256-UHAwk1fBcabRqy7VMhz4aoQuIur+MQshDOhC7KFyGm4=" ;
3939 } ;
40+
41+ # The formatting scripts require a specific version of uncrustify:
42+ uncrustify-0_75_1 = stdenv . mkDerivation rec {
43+ pname = "uncrustify" ;
44+ version = "0.75.1" ;
45+
46+ src = pkgs . fetchFromGitHub {
47+ owner = "uncrustify" ;
48+ repo = "uncrustify" ;
49+ rev = "uncrustify-${ version } " ;
50+ sha256 = "sha256-wLzj/KcqXlcTsOJo7T166jLcWi1KNLmgblIqqkj7/9c=" ;
51+ } ;
52+
53+ nativeBuildInputs = with pkgs ; [
54+ cmake
55+ python3
56+ ] ;
57+ } ;
58+
4059in
4160 pkgs . mkShell {
4261 name = "tock-dev" ;
4766 python3Full
4867 tockloader
4968 pkgsCross . riscv32-embedded . buildPackages . gcc
50- uncrustify
5169 unzip
5270 openocd
71+ uncrustify-0_75_1
5372 ] ++ ( lib . optionals withUnfreePkgs [
5473 segger-jlink
5574 tockloader . nrf-command-line-tools
You can’t perform that action at this time.
0 commit comments