Merge branch 'redox-unix' of https://gitlab.redox-os.org/redox-os/redox into redox-unix
This commit is contained in:
commit
5d1ba6cf70
22
shell.nix
22
shell.nix
|
@ -1,9 +1,21 @@
|
||||||
with import <nixpkgs> {};
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "redox";
|
|
||||||
|
|
||||||
|
pkgs.mkShell rec {
|
||||||
hardeningDisable = [ "all" ];
|
hardeningDisable = [ "all" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ gnumake cmake nasm pkgconfig gcc automake autoconf bison gperf qemu ];
|
# used in mk/prefix.mk to patch interpreter when PREFIX_BINARY=1
|
||||||
buildInputs = [ openssl gettext libtool flex libpng perl perlPackages.HTMLParser ];
|
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 rustup ];
|
||||||
|
buildInputs = with pkgs; [ fuse openssl gettext libtool flex libpng perl perlPackages.HTMLParser ];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
export PATH="/run/wrappers/bin:$PATH"
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue