summary refs log tree commit diff
path: root/pkgs/stdenv/nix-linux-static/default.nix
blob: d4afccabe6ba3229496154ae4b97074b39da598f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{stdenv, glibc, pkgs, genericStdenv, gccWrapper}:

genericStdenv {
  name = "stdenv-nix-linux-static";
  preHook = ./prehook.sh;
  initialPath = (import ./path.nix) {pkgs = (import ./pkgs.nix) {stdenv = stdenv;};};

  inherit stdenv;

  gcc = gccWrapper {
    #name = pkgs.gcc.name;
    nativeTools = false;
    nativeGlibc = false;
    inherit (pkgs) binutils;
    gcc = (import ./gcc-static) {stdenv = stdenv;};
    inherit stdenv glibc;
    shell = pkgs.bash ~ /bin/sh;
  };

  shell = pkgs.bash ~ /bin/sh;

}