summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/broken/arduino-chroot/fhsUser.nix
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/5pkgs/broken/arduino-chroot/fhsUser.nix')
-rw-r--r--makefu/5pkgs/broken/arduino-chroot/fhsUser.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/makefu/5pkgs/broken/arduino-chroot/fhsUser.nix b/makefu/5pkgs/broken/arduino-chroot/fhsUser.nix
new file mode 100644
index 000000000..a699bbfb8
--- /dev/null
+++ b/makefu/5pkgs/broken/arduino-chroot/fhsUser.nix
@@ -0,0 +1,25 @@
+{ lib, pkgs, ... }: let
+
+env_nix = pkgs.writeText "env.nix" ''
+ { pkgs ? import <nixpkgs> {} }:
+
+ (pkgs.buildFHSUserEnv {
+ name = "simple-x11-env";
+ targetPkgs = pkgs: with pkgs; [
+ coreutils
+ gcc
+ arduino
+ ];
+ multiPkgs = pkgs: with pkgs; [
+ zlib
+ curl
+ ];
+ runScript = "arduino";
+ }).env
+'';
+
+
+in pkgs.writeDashBin "games-user-env" ''
+ nix-shell ${env_nix}
+''
+