summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/broken/arduino-chroot/fhsUser.nix
blob: a699bbfb806c07213d0b4bbcbd07100faf3332fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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}
''