From f8130880426944fc3355c356ee18dfc30d4df7dd Mon Sep 17 00:00:00 2001 From: Robert Hambrock Date: Tue, 29 Oct 2024 21:47:00 +0100 Subject: [PATCH] minimal shell stub --- shell.nix | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000000..94ef6d317d --- /dev/null +++ b/shell.nix @@ -0,0 +1,43 @@ +{ pkgs ? import { } }: + +pkgs.mkShell { + buildInputs = [ + pkgs.gcc + # pkgs.clang + # pkgs.libclang + pkgs.cmake + pkgs.boost + pkgs.boost-build + pkgs.zlib + pkgs.python3 + pkgs.python3Packages.pip + pkgs.curl + pkgs.cacert # Provide SSL certificates + # pkgs.openssl + # pkgs.wget + pkgs.gmp.dev + pkgs.ncurses + pkgs.libnsl + pkgs.libseccomp + # pkgs.elfutils + # pkgs.libbfd + # pkgs.libdwarf + pkgs.which + # pkgs.pkgsCross.mingw32.buildPackages.gcc + ]; + configureFlags = [ "--with-boost-libdir=${pkgs.boost}/lib" ]; + # Ensure the include paths for the standard C++ library are available. + shellHook = '' + # export CXX=clang + unset CROSS_COMPILE + # unset CC + # unset CXX + + # export CXXFLAGS="-I${pkgs.stdenv.cc.cc.lib}/include -I${pkgs.pkgsCross.mingw32.boost}/include" + # export LDFLAGS="-L${pkgs.stdenv.cc.cc.lib}/lib -L${pkgs.libdwarf}/lib -L${pkgs.pkgsCross.mingw32.boost}/lib" + # export LDFLAGS="-L${pkgs.stdenv.cc.cc.lib}/lib -L${pkgs.libdwarf}/lib -L${pkgs.boost}/include -L${pkgs.boost-build}/include" + # export CXXFLAGS="-I${pkgs.stdenv.cc.cc.lib}/include -I${pkgs.libdwarf}/include -I${pkgs.boost}/include -I${pkgs.boost-build}/include" + export LDFLAGS="-L${pkgs.stdenv.cc.cc.lib}/lib -L${pkgs.boost}/include -L${pkgs.boost-build}/include" + export CXXFLAGS="-I${pkgs.stdenv.cc.cc.lib}/include -I${pkgs.boost}/include -I${pkgs.boost-build}/include" + ''; +}