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

43 lines
830 B
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
gfortran,
cairo,
freetype,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "giza";
version = "1.4.1";
src = fetchFromGitHub {
owner = "danieljprice";
repo = "giza";
rev = "v${finalAttrs.version}";
hash = "sha256-spb46IoySf6DM454adcWmqqLlzNA2HK9z29TzOCECJ4=";
};
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;
};
})