shrub/nix/nixcrpkgs/pkgs/readline/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

42 lines
1.0 KiB
Nix

# Note: This has only been tested on Windows, and is using pdcurses
# which only seems to work on Windows.
{ crossenv, curses }:
let
fetchurl = crossenv.nixpkgs.fetchurl;
in
crossenv.make_derivation rec {
name = "readline-${version}";
version = "7.0";
src = fetchurl {
url = "mirror://gnu/readline/readline-${version}.tar.gz";
sha256 = "0d13sg9ksf982rrrmv5mb6a2p4ys9rvg9r71d6il0vr8hmql63bm";
};
patches_p2 = [
(fetchurl {
url = "mirror://gnu/readline/readline-7.0-patches/readline70-001";
sha256 = "0xm3sxvwmss7ddyfb11n6pgcqd1aglnpy15g143vzcf75snb7hcs";
})
(fetchurl {
url = "mirror://gnu/readline/readline-7.0-patches/readline70-002";
sha256 = "0n1dxmqsbjgrfxb1hgk5c6lsraw4ncbnzxlsx7m35nym6lncjiw7";
})
(fetchurl {
url = "mirror://gnu/readline/readline-7.0-patches/readline70-003";
sha256 = "1027kmymniizcy0zbdlrczxfx3clxcdln5yq05q9yzlc6y9slhwy";
})
];
patches = [
./readline-1.patch
];
builder = ./builder.sh;
inherit curses;
}