summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/arduino-user-env
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-06-29 22:04:58 +0200
committertv <tv@krebsco.de>2017-06-29 22:04:58 +0200
commit077a6a699129416cdeb0a9da3aba30d156e46b7a (patch)
treed5588c0024a942fef6f4d597aedac5708dd7fa45 /makefu/5pkgs/arduino-user-env
parent10adb2d27e3005c7239585eb38dbbe3b5b01a400 (diff)
parent51e091c7c3fb52579bc9ed59d1c7db633cd24e5b (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/5pkgs/arduino-user-env')
-rw-r--r--makefu/5pkgs/arduino-user-env/default.nix35
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}
+''