about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/ht/default.nix
blob: c8a13738c9109bbfdc128eb24d05c816849ac971 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, lib, fetchurl, ncurses }:

stdenv.mkDerivation rec {
  pname = "ht";
  version = "2.1.0";

  src = fetchurl {
    url = "mirror://sourceforge/project/hte/ht-source/ht-${version}.tar.bz2";
    sha256 = "0w2xnw3z9ws9qrdpb80q55h6ynhh3aziixcfn45x91bzrbifix9i";
  };

  buildInputs = [
    ncurses
  ];

  hardeningDisable = [ "format" ];

  patches = [ ./gcc7.patch ];

  env.NIX_CFLAGS_COMPILE = toString [ "-Wno-narrowing" ];

  meta = with lib; {
    description = "File editor/viewer/analyzer for executables";
    homepage = "https://hte.sourceforge.net";
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = with maintainers; [ ];
  };
}