2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv, fetchurl, libxml2, readline, zlib, perl, cairo, gtk3, gsl
|
2019-11-30 23:11:47 +00:00
|
|
|
, pkgconfig, gtksourceview, pango, gettext, dconf
|
2018-05-15 21:26:59 +01:00
|
|
|
, makeWrapper, gsettings-desktop-schemas, hicolor-icon-theme
|
2020-10-27 00:10:37 +00:00
|
|
|
, texinfo, ssw, python3
|
2013-09-26 10:41:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-01-30 14:19:44 +00:00
|
|
|
pname = "pspp";
|
2020-10-27 00:10:37 +00:00
|
|
|
version = "1.4.1";
|
2013-09-26 10:41:07 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-01-30 14:19:44 +00:00
|
|
|
url = "mirror://gnu/pspp/${pname}-${version}.tar.gz";
|
2020-10-27 00:10:37 +00:00
|
|
|
sha256 = "0lqrash677b09zxdlxp89z6k02y4i23mbqg83956dwl69wc53dan";
|
2013-09-26 10:41:07 +01:00
|
|
|
};
|
|
|
|
|
2020-10-27 00:10:37 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig texinfo python3 ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ libxml2 readline zlib perl cairo gtk3 gsl
|
2018-05-15 21:26:59 +01:00
|
|
|
gtksourceview pango gettext
|
2020-01-30 14:19:44 +00:00
|
|
|
makeWrapper gsettings-desktop-schemas hicolor-icon-theme ssw
|
|
|
|
];
|
2013-09-26 10:41:07 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-05-15 21:26:59 +01:00
|
|
|
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-15 13:21:58 +00:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${lib.getLib dconf}/lib/gio/modules"
|
2018-05-15 21:26:59 +01:00
|
|
|
'';
|
|
|
|
|
2013-09-26 10:41:07 +01:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.gnu.org/software/pspp/";
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "A free replacement for SPSS, a program for statistical analysis of sampled data";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2013-09-26 10:41:07 +01: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-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2013-09-26 10:41:07 +01:00
|
|
|
};
|
|
|
|
}
|