Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildFHSEnv, platformio-core }: 2 3let 4 pio-pkgs = pkgs: 5 let 6 inherit (platformio-core) python; 7 in 8 (with pkgs; [ 9 platformio-core 10 zlib 11 git 12 xdg-user-dirs 13 ncurses 14 ]) ++ (with python.pkgs; [ 15 python 16 setuptools 17 pip 18 bottle 19 ]); 20 21in 22buildFHSEnv { 23 name = "platformio"; 24 25 targetPkgs = pio-pkgs; 26 # disabled temporarily because fastdiff no longer support 32bit 27 # multiPkgs = pio-pkgs; 28 29 meta = with lib; { 30 description = "An open source ecosystem for IoT development"; 31 homepage = "https://platformio.org"; 32 maintainers = with maintainers; [ mog ]; 33 license = licenses.asl20; 34 platforms = with platforms; linux; 35 }; 36 37 extraInstallCommands = '' 38 ln -s $out/bin/platformio $out/bin/pio 39 ln -s ${platformio-core.udev}/lib $out/lib 40 ''; 41 42 runScript = "platformio"; 43}