shrub/nix/nixcrpkgs/pkgs/gdb/default.nix
benjamin-tlon edd57d380d
Finish cc-release cross-compilation. (#1202)
- Fixes the IPC bug
- Fixes the terminfo bug
- Moves the OSX SDK out of our nixcrpkgs fork.
- Vendor nixcrpkgs instead of having it be a submodule.
2019-04-23 19:50:38 -07:00

39 lines
1.0 KiB
Nix

# Note: This package has only been tested on Windows, and the pdcurses library
# it uses does not support Linux in console mode or mac OS X.
# Note: GDB has a bundled copy of readline that it uses.
# There is a --with-system-readline option we could try to use.
# Note: consider providing a mingw-w64 isl to gdb because its configure script looks for it
{ crossenv, expat, curses }:
crossenv.make_derivation rec {
name = "gdb-${version}";
version = "7.12.1";
src = crossenv.nixpkgs.fetchurl {
url = "https://ftp.gnu.org/gnu/gdb/gdb-${version}.tar.xz";
sha256 = "11ii260h1sd7v0bs3cz6d5l8gqxxgldry0md60ncjgixjw5nh1s6";
};
patches = [
# Make GCC better at finding source files.
# https://sourceware.org/ml/gdb-patches/2017-02/msg00693.html
./substitute-path-all-filenames.patch
];
native_inputs = [
crossenv.nixpkgs.texinfo
crossenv.nixpkgs.bison
crossenv.nixpkgs.yacc
crossenv.nixpkgs.m4
crossenv.nixpkgs.flex
];
inherit expat curses;
builder = ./builder.sh;
}