diff options
author | makefu <github@syntax-fehler.de> | 2017-06-26 17:06:22 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-06-27 20:49:33 +0200 |
commit | 1f72a5d66bbbc9f213e3fa5de071d06a1818d930 (patch) | |
tree | 497b8d8bf7f0a26c6de99e4597c795adec0b0e38 /makefu/5pkgs/arduino-user-env | |
parent | 622d0dc0f266f94cfd5e6a5eec0ae254fec60ba3 (diff) |
ma arduino-user-env: init
Diffstat (limited to 'makefu/5pkgs/arduino-user-env')
-rw-r--r-- | makefu/5pkgs/arduino-user-env/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/makefu/5pkgs/arduino-user-env/default.nix b/makefu/5pkgs/arduino-user-env/default.nix new file mode 100644 index 000000000..7339c50a2 --- /dev/null +++ b/makefu/5pkgs/arduino-user-env/default.nix @@ -0,0 +1,35 @@ +{ lib, pkgs, ... }: let + +#TODO: make sure env exists prior to running +env_nix = pkgs.writeText "env.nix" '' + { pkgs ? import <nixpkgs> {} }: + + (pkgs.buildFHSUserEnv { + name = "arduino-user-env"; + targetPkgs = pkgs: with pkgs; [ + coreutils + ]; + multiPkgs = pkgs: with pkgs; [ + arduino + alsaLib + zlib + xorg.libXxf86vm + curl + openal + openssl_1_0_2 + xorg.libXext + xorg.libX11 + xorg.libXrandr + xorg.libXcursor + xorg.libXinerama + xorg.libXi + mesa_glu + ]; + runScript = "zsh"; + }).env +''; + + +in pkgs.writeDashBin "arduino-user-env" '' + nix-shell ${env_nix} +'' |