]>
Commit | Line | Data |
---|---|---|
5ec2b60a SW |
1 | { pkgs ? import ~/devel/nixpkgs { }, }: |
2 | let | |
3 | cc = pkgs.pkgsCross.arm-embedded.stdenv.cc; | |
4 | tattlekey = { lib, stdenv, cmake, pico-sdk, python3 }: | |
5 | stdenv.mkDerivation { | |
6 | pname = "tattlekey"; | |
7 | version = "0.0.1"; | |
8 | src = lib.cleanSource ./.; | |
9 | nativeBuildInputs = [ cmake python3 ]; | |
10 | cmakeFlags = [ | |
11 | "-DCMAKE_C_COMPILER=${cc}/bin/arm-none-eabi-cc" | |
12 | "-DCMAKE_CXX_COMPILER=${cc}/bin/arm-none-eabi-c++" | |
13 | "-DPICO_SDK_PATH=${pico-sdk.override { minimal = false; }}/lib/pico-sdk" | |
14 | "-DPICO_TOOLCHAIN_PATH=${cc}/bin" | |
15 | ]; | |
16 | /* | |
17 | installPhase = '' | |
18 | runHook preInstall | |
19 | ||
20 | mkdir $out | |
21 | mv build/tattlekey.* $out | |
22 | ||
23 | runHook postInstall | |
24 | ''; | |
25 | */ | |
26 | }; | |
27 | in pkgs.callPackage tattlekey {} |