git.iko.soy/typeable/nixpkgs
on master help sign in
hexcurse: fix build with gcc7
commit1fedf8907d50dbe04826d929e3ed5e54d8dbdc06 authorPiotr Bogdan <ppbogdan@gmail.com> dateFri 9 Mar 2018, 16:18 (9 years ago) parent6625fb8
1 file changed+13−1
pkgs/applications/editors/hexcurse/default.nix+13−1
pkgs/applications/editors/hexcurse/default.nix+13−1
@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchFromGitHub, ncurses }:
1+{ stdenv, lib, fetchFromGitHub, fetchpatch, ncurses }:
22
33stdenv.mkDerivation rec {
44 name = "hexcurse-${version}";
@@ -11,6 +11,18 @@ stdenv.mkDerivation rec {
1111 sha256 = "17ckkxfzbqvvfdnh10if4aqdcq98q3vl6dn1v6f4lhr4ifnyjdlk";
1212 };
1313 buildInputs = [ ncurses ];
14+ patches = [
15+ # gcc7 compat
16+ (fetchpatch {
17+ url = https://github.com/LonnyGomes/hexcurse/commit/d808cb7067d1df067f8b707fabbfaf9f8931484c.patch;
18+ sha256 = "0h8345blmc401c6bivf0imn4cwii67264yrzxg821r46wrnfvyi2";
19+ })
20+ # gcc7 compat
21+ (fetchpatch {
22+ url = https://github.com/LonnyGomes/hexcurse/commit/716b5d58ac859cc240b8ccb9cbd79ace3e0593c1.patch;
23+ sha256 = "0v6gbp6pjpmnzswlf6d97aywiy015g3kcmfrrkspsbb7lh1y3nix";
24+ })
25+ ];
1426
1527 meta = with lib; {
1628 description = "ncurses-based console hexeditor written in C";