2023-09-02 19:56:06 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, curl
|
|
|
|
, fftw
|
|
|
|
, gmp
|
|
|
|
, gnuplot
|
|
|
|
, gtk3
|
|
|
|
, gtksourceview3
|
|
|
|
, json-glib
|
|
|
|
, lapack
|
|
|
|
, libxml2
|
|
|
|
, mpfr
|
|
|
|
, openblas
|
|
|
|
, readline
|
2023-09-02 20:51:40 +00:00
|
|
|
, Accelerate
|
2023-09-02 19:56:06 +00:00
|
|
|
, 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
|
2023-09-02 20:51:40 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
Accelerate
|
2020-06-10 17:34:38 +00:00
|
|
|
];
|
|
|
|
|
2023-09-02 19:56:06 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-06-10 17:34:38 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2023-03-09 22:29:59 +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-06-10 17:34:38 +00:00
|
|
|
|
2023-09-02 19:56:06 +00:00
|
|
|
meta = {
|
2020-06-10 17:34:38 +00:00
|
|
|
description = "A software package for econometric analysis";
|
2023-09-02 19:56:06 +00:00
|
|
|
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.
|
|
|
|
'';
|
2023-09-02 19:56:06 +00:00
|
|
|
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
|
|
|
})
|