2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, libxml2, readline, zlib, perl, cairo, gtk3, gsl
|
2023-08-22 20:05:09 +00:00
|
|
|
, pkg-config, gtksourceview4, pango, gettext, dconf
|
2020-04-24 23:36:52 +00:00
|
|
|
, makeWrapper, gsettings-desktop-schemas, hicolor-icon-theme
|
2023-08-22 20:05:09 +00:00
|
|
|
, texinfo, ssw, python3, iconv
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pspp";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "1.6.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/pspp/${pname}-${version}.tar.gz";
|
2023-08-22 20:05:09 +00:00
|
|
|
sha256 = "sha256-cylMovWy9/xBu/i3jFiIyAdfQ8YJf9SCq7BPhasIR7Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
nativeBuildInputs = [ pkg-config texinfo python3 makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libxml2 readline zlib perl cairo gtk3 gsl
|
2023-08-22 20:05:09 +00:00
|
|
|
gtksourceview4 pango gettext
|
|
|
|
gsettings-desktop-schemas hicolor-icon-theme ssw iconv
|
|
|
|
];
|
|
|
|
|
|
|
|
C_INCLUDE_PATH =
|
|
|
|
"${libxml2.dev}/include/libxml2/:" +
|
|
|
|
lib.makeSearchPathOutput "dev" "include" buildInputs;
|
|
|
|
LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/psppire" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$out/share" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
|
2021-01-17 00:15:33 +00:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${lib.getLib dconf}/lib/gio/modules"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://www.gnu.org/software/pspp/";
|
|
|
|
description = "A free replacement for SPSS, a program for statistical analysis of sampled data";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
PSPP is a program for statistical analysis of sampled data. It is
|
|
|
|
a Free replacement for the proprietary program SPSS.
|
|
|
|
|
|
|
|
PSPP can perform descriptive statistics, T-tests, anova, linear
|
|
|
|
and logistic regression, cluster analysis, factor analysis,
|
|
|
|
non-parametric tests and more. Its backend is designed to perform
|
|
|
|
its analyses as fast as possible, regardless of the size of the
|
|
|
|
input data. You can use PSPP with its graphical interface or the
|
|
|
|
more traditional syntax commands.
|
|
|
|
'';
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|