nixpkgs/pkgs/applications/science/math/gretl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, curl
, fftw
, gmp
, gnuplot
, gtk3
, gtksourceview3
, json-glib
, lapack
, libxml2
, mpfr
, openblas
, readline
, Accelerate
, pkg-config
}:
2020-06-10 17:34:38 +00:00
2023-09-02 19:56:53 +00:00
stdenv.mkDerivation (finalAttrs: {
2020-06-10 17:34:38 +00:00
pname = "gretl";
2024-05-22 19:30:44 +00:00
version = "2024b";
2020-06-10 17:34:38 +00:00
src = fetchurl {
2023-09-02 19:56:53 +00:00
url = "mirror://sourceforge/gretl/gretl-${finalAttrs.version}.tar.xz";
2024-05-22 19:30:44 +00:00
hash = "sha256-mkmOmKO2tiAysZhwC8kNuCXNml8NdFPfaNFykdxYFAY=";
2020-06-10 17:34:38 +00:00
};
buildInputs = [
curl
fftw
gmp
gnuplot
gtk3
gtksourceview3
json-glib
lapack
libxml2
mpfr
openblas
readline
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
Accelerate
2020-06-10 17:34:38 +00:00
];
nativeBuildInputs = [
pkg-config
];
2020-06-10 17:34:38 +00:00
enableParallelBuilding = true;
# Missing install depends:
# cp: cannot stat '...-gretl-2022c/share/gretl/data/plotbars': Not a directory
# make[1]: *** [Makefile:73: install_datafiles] Error 1
enableParallelInstalling = false;
2020-06-10 17:34:38 +00:00
meta = {
2020-06-10 17:34:38 +00:00
description = "A software package for econometric analysis";
homepage = "https://gretl.sourceforge.net";
license = lib.licenses.gpl3;
2020-06-10 17:34:38 +00:00
longDescription = ''
gretl is a cross-platform software package for econometric analysis,
written in the C programming language.
'';
maintainers = with lib.maintainers; [ dmrauh ];
platforms = lib.platforms.all;
2020-06-10 17:34:38 +00:00
};
2023-09-02 19:56:53 +00:00
})