3
0
Fork 0
forked from mirrors/nixpkgs

gerbv: equalize

This commit is contained in:
Fabian Affolter 2023-05-31 09:02:13 +02:00 committed by GitHub
parent dd0a325d94
commit 083530b578
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,15 @@
{ 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 { stdenv.mkDerivation rec {
pname = "gerbv"; pname = "gerbv";
@ -7,7 +18,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "gerbv"; owner = "gerbv";
repo = pname; repo = pname;
rev = "v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-KxKNMWhWwmlIpueDOSWAWADEHFha8axywPJ6rRz0jIg="; hash = "sha256-KxKNMWhWwmlIpueDOSWAWADEHFha8axywPJ6rRz0jIg=";
}; };
@ -15,17 +26,30 @@ stdenv.mkDerivation rec {
sed -i '/AC_INIT/s/m4_esyscmd.*/${version}])/' configure.ac sed -i '/AC_INIT/s/m4_esyscmd.*/${version}])/' configure.ac
''; '';
nativeBuildInputs = [ autoreconfHook pkg-config automake autoconf ]; nativeBuildInputs = [
buildInputs = [ gettext libtool cairo gtk2-x11 ]; autoconf
automake
autoreconfHook
pkg-config
];
configureFlags = ["--disable-update-desktop-database"]; buildInputs = [
cairo
gettext
gtk2-x11
libtool
];
configureFlags = [
"--disable-update-desktop-database"
];
meta = with lib; { meta = with lib; {
description = "A Gerber (RS-274X) viewer"; description = "A Gerber (RS-274X) viewer";
homepage = "https://gerbv.github.io/"; homepage = "https://gerbv.github.io/";
changelog = "https://github.com/gerbv/gerbv/releases/tag/v${version}"; changelog = "https://github.com/gerbv/gerbv/releases/tag/v${version}";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ mog ]; maintainers = with maintainers; [ mog ];
platforms = platforms.unix; platforms = platforms.unix;
license = licenses.gpl2Plus;
}; };
} }