mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
57 lines
1012 B
Nix
57 lines
1012 B
Nix
{ lib
|
|
, stdenv
|
|
, autoconf
|
|
, automake
|
|
, autoreconfHook
|
|
, cairo
|
|
, fetchFromGitHub
|
|
, gettext
|
|
, gtk2-x11
|
|
, libtool
|
|
, pkg-config
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gerbv";
|
|
version = "2.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gerbv";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-sr48RGLYcMKuyH9p+5BhnR6QpKBvNOqqtRryw3+pbBk=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/AC_INIT/s/m4_esyscmd.*/${version}])/' configure.ac
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoconf
|
|
automake
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
cairo
|
|
gettext
|
|
gtk2-x11
|
|
libtool
|
|
];
|
|
|
|
configureFlags = [
|
|
"--disable-update-desktop-database"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Gerber (RS-274X) viewer";
|
|
mainProgram = "gerbv";
|
|
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;
|
|
};
|
|
}
|