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