29 lines
		
	
	
	
		
			902 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			902 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
let
 | 
						|
  pkgs = import <nixpkgs> {
 | 
						|
    overlays = [
 | 
						|
      (import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz))
 | 
						|
    ];
 | 
						|
  };
 | 
						|
  rust = (pkgs.rustChannelOf {
 | 
						|
    date = "2019-04-06";
 | 
						|
    channel = "nightly";
 | 
						|
  }).rust;
 | 
						|
in pkgs.mkShell rec {
 | 
						|
  hardeningDisable = [ "all" ];
 | 
						|
 | 
						|
  # used in mk/prefix.mk to patch interpreter when PREFIX_BINARY=1
 | 
						|
  NIX_INTERPRETER = "${pkgs.stdenv.cc.libc}/lib/ld-linux-x86-64.so.2";
 | 
						|
 | 
						|
  LIBRARY_PATH = pkgs.lib.makeLibraryPath [
 | 
						|
    pkgs.gcc-unwrapped pkgs.stdenv.cc.libc
 | 
						|
    (toString prefix/x86_64-unknown-redox)
 | 
						|
  ];
 | 
						|
  LD_LIBRARY_PATH = LIBRARY_PATH;
 | 
						|
 | 
						|
  nativeBuildInputs = with pkgs; [ gnumake cmake nasm pkgconfig gcc automake autoconf bison gperf qemu rust ];
 | 
						|
  buildInputs = with pkgs; [ fuse openssl gettext libtool flex libpng perl perlPackages.HTMLParser ];
 | 
						|
 | 
						|
  shellHook = ''
 | 
						|
    export PATH="/run/wrappers/bin:$PATH"
 | 
						|
  '';
 | 
						|
}
 |