Unverified Commit 1921b5e0 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #235127 from r-ryantm/auto-update/gerbv

gerbv: 2.9.6 -> 2.9.7
parents c696a883 083530b5
Loading
Loading
Loading
Loading
+32 −8
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, pkg-config, gettext, libtool, automake, autoconf, cairo, gtk2-x11, autoreconfHook }:
{ lib
, stdenv
, autoconf
, automake
, autoreconfHook
, cairo
, fetchFromGitHub
, gettext
, gtk2-x11
, libtool
, pkg-config
}:

stdenv.mkDerivation rec {
  pname = "gerbv";
  version = "2.9.6";
  version = "2.9.7";

  src = fetchFromGitHub {
    owner = "gerbv";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-HNhrnXOBlzfO/roWzTsg0RcJPb0c7RuJepankB5zNts=";
    rev = "refs/tags/v${version}";
    hash = "sha256-KxKNMWhWwmlIpueDOSWAWADEHFha8axywPJ6rRz0jIg=";
  };

  postPatch = ''
    sed -i '/AC_INIT/s/m4_esyscmd.*/${version}])/' configure.ac
  '';

  nativeBuildInputs = [ autoreconfHook pkg-config automake autoconf ];
  buildInputs = [ gettext libtool cairo gtk2-x11 ];
  nativeBuildInputs = [
    autoconf
    automake
    autoreconfHook
    pkg-config
  ];

  configureFlags = ["--disable-update-desktop-database"];
  buildInputs = [
    cairo
    gettext
    gtk2-x11
    libtool
  ];

  configureFlags = [
    "--disable-update-desktop-database"
  ];

  meta = with lib; {
    description = "A Gerber (RS-274X) viewer";
    homepage = "https://gerbv.github.io/";
    changelog = "https://github.com/gerbv/gerbv/releases/tag/v${version}";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ mog ];
    platforms = platforms.unix;
    license = licenses.gpl2;
  };
}