diff options
author | lassulus <lass@lassul.us> | 2017-06-27 20:55:19 +0200 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-06-27 20:55:19 +0200 |
commit | 7b43fe5543e20a50d06ebbbb08a9461859b48460 (patch) | |
tree | 9c30ef11e9ea852c3232478045e48c5d73341fe9 /makefu/5pkgs/arduino-user-env | |
parent | 0e607fe1bc50b596301086b064a74232d7126f5c (diff) | |
parent | d58e8035b4101b20539279247ec083b72ba0a647 (diff) |
Merge remote-tracking branch 'gum/master'
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} +'' |