Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1019 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 = "gerbv";
tag = "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 = {
description = "Gerber (RS-274X) viewer";
mainProgram = "gerbv";
homepage = "https://gerbv.github.io/";
changelog = "https://github.com/gerbv/gerbv/releases/tag/v${version}";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ mog ];
platforms = lib.platforms.unix;
};
}