Unverified Commit def30974 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

lv: 4.51 -> 4.51-unstable-2020-08-03, fix gcc-14 build (#367689)

parents 43453984 f9cb5d3e
Loading
Loading
Loading
Loading
+18 −6
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchurl,
  fetchFromGitHub,
  ncurses,
  unstableGitUpdater,
  autoreconfHook,
}:

stdenv.mkDerivation rec {
  pname = "lv";
  version = "4.51";
  version = "4.51-unstable-2020-08-03";

  src = fetchurl {
    url = "mirror://debian/pool/main/l/${pname}/${pname}_${version}.orig.tar.gz";
    sha256 = "0yf3idz1qspyff1if41xjpqqcaqa8q8icslqlnz0p9dj36gmm5l3";
  src = fetchFromGitHub {
    owner = "ttdoda";
    repo = "lv";
    rev = "1fb214d4136334a1f6cd932b99f85c74609e1f23";
    hash = "sha256-mUFiWzTTM6nAKQgXA0sYIUm1MwN7HBHD8LWBgzu3ZUk=";
  };

  makeFlags = [ "prefix=${placeholder "out"}" ];

  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [ ncurses ];

  preAutoreconf = "cd src";
  postAutoreconf = "cd ..";

  configurePhase = ''
    mkdir -p build
    cd build
@@ -28,9 +36,13 @@ stdenv.mkDerivation rec {
    mkdir -p $out/bin
  '';

  passthru.updateScript = unstableGitUpdater {
    tagPrefix = "v";
  };

  meta = with lib; {
    description = "Powerful multi-lingual file viewer / grep";
    homepage = "https://web.archive.org/web/20160310122517/www.ff.iij4u.or.jp/~nrt/lv/";
    homepage = "https://github.com/ttdoda/lv";
    license = licenses.gpl2Plus;
    platforms = with platforms; linux ++ darwin;
    maintainers = with maintainers; [ kayhide ];