summaryrefslogtreecommitdiffstats
path: root/5pkgs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-06-26 17:06:22 +0200
committermakefu <github@syntax-fehler.de>2017-06-27 20:49:33 +0200
commitb5f6ce0e3ae31a49771adc728a6fd2b82dec36a4 (patch)
tree5d3e6ff2884c90b610d1d1a5a7f34839a1560e83 /5pkgs
parent1f4d170dd88fcfcfd79276826479071e49cb273e (diff)
ma arduino-user-env: init
Diffstat (limited to '5pkgs')
-rw-r--r--5pkgs/arduino-user-env/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/5pkgs/arduino-user-env/default.nix b/5pkgs/arduino-user-env/default.nix
new file mode 100644
index 000000000..7339c50a2
--- /dev/null
+++ b/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}
+''
[cgit] Unable to lock slot /tmp/cgit/9f000000.lock: No such file or directory (2)