2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, curl
|
|
|
|
, fftw
|
|
|
|
, gmp
|
|
|
|
, gnuplot
|
|
|
|
, gtk3
|
|
|
|
, gtksourceview3
|
|
|
|
, json-glib
|
|
|
|
, lapack
|
|
|
|
, libxml2
|
|
|
|
, mpfr
|
|
|
|
, openblas
|
|
|
|
, readline
|
|
|
|
, Accelerate
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-11-30 08:33:03 +00:00
|
|
|
pname = "gretl";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "2023b";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-09 19:29:22 +00:00
|
|
|
url = "mirror://sourceforge/gretl/gretl-${finalAttrs.version}.tar.xz";
|
|
|
|
hash = "sha256-Hf025JjFxde43TN/1m9PeA1uHqxKTZMI8+1qf3XJLGs=";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
curl
|
|
|
|
fftw
|
|
|
|
gmp
|
|
|
|
gnuplot
|
|
|
|
gtk3
|
|
|
|
gtksourceview3
|
|
|
|
json-glib
|
|
|
|
lapack
|
|
|
|
libxml2
|
|
|
|
mpfr
|
|
|
|
openblas
|
|
|
|
readline
|
2023-10-09 19:29:22 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
Accelerate
|
2020-11-30 08:33:03 +00:00
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2023-03-27 19:17:25 +00:00
|
|
|
# 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-11-30 08:33:03 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
meta = {
|
2020-11-30 08:33:03 +00:00
|
|
|
description = "A software package for econometric analysis";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://gretl.sourceforge.net";
|
|
|
|
license = lib.licenses.gpl3;
|
2020-11-30 08:33:03 +00:00
|
|
|
longDescription = ''
|
|
|
|
gretl is a cross-platform software package for econometric analysis,
|
|
|
|
written in the C programming language.
|
|
|
|
'';
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with lib.maintainers; [ dmrauh ];
|
|
|
|
platforms = lib.platforms.all;
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|