depot/third_party/nixpkgs/pkgs/by-name/gi/giza/package.nix

42 lines
830 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
gfortran,
cairo,
freetype,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "giza";
version = "1.4.2";
src = fetchFromGitHub {
owner = "danieljprice";
repo = "giza";
rev = "v${finalAttrs.version}";
hash = "sha256-fFju6nyOn/zdN/ygje+pOt67vgycqllX9gRYPi3ipVM=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
gfortran
];
buildInputs = [
cairo
freetype
];
meta = {
description = "Scientific plotting library for C/Fortran";
inherit (finalAttrs.src.meta) homepage;
changelog = "${finalAttrs.src.meta.homepage}/blob/${finalAttrs.src.rev}/ChangeLog";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ doronbehar ];
platforms = lib.platforms.all;
};
})