Skip to content

Commit

Permalink
Merge #36663: hexcurse: fix build with gcc7
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Mar 9, 2018
2 parents b441512 + 1fedf89 commit 0ce2f04
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion pkgs/applications/editors/hexcurse/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, ncurses }:
{ stdenv, lib, fetchFromGitHub, fetchpatch, ncurses }:

stdenv.mkDerivation rec {
name = "hexcurse-${version}";
Expand All @@ -11,6 +11,18 @@ stdenv.mkDerivation rec {
sha256 = "17ckkxfzbqvvfdnh10if4aqdcq98q3vl6dn1v6f4lhr4ifnyjdlk";
};
buildInputs = [ ncurses ];
patches = [
# gcc7 compat
(fetchpatch {
url = https://github.com/LonnyGomes/hexcurse/commit/d808cb7067d1df067f8b707fabbfaf9f8931484c.patch;
sha256 = "0h8345blmc401c6bivf0imn4cwii67264yrzxg821r46wrnfvyi2";
})
# gcc7 compat
(fetchpatch {
url = https://github.com/LonnyGomes/hexcurse/commit/716b5d58ac859cc240b8ccb9cbd79ace3e0593c1.patch;
sha256 = "0v6gbp6pjpmnzswlf6d97aywiy015g3kcmfrrkspsbb7lh1y3nix";
})
];

meta = with lib; {
description = "ncurses-based console hexeditor written in C";
Expand Down

0 comments on commit 0ce2f04

Please sign in to comment.