Skip to content

Commit

Permalink
minimal shell stub
Browse files Browse the repository at this point in the history
  • Loading branch information
Lederstrumpf committed Oct 29, 2024
1 parent 0a03875 commit f813088
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{ pkgs ? import <nixpkgs> { } }:

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"
'';
}

0 comments on commit f813088

Please sign in to comment.