mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
e0d6edddd7
psppire needs to be wrapped so that it will work outside of GNOME desktop. We provide hicolor-icon-theme & gsettings-desktop-schemas. Note that at runtime, I still get this error: - Cannot create a converter for `IBM864' to `UTF-8': Invalid argument Possibly a locale issue. Fixes #40558
52 lines
1.7 KiB
Nix
52 lines
1.7 KiB
Nix
{ stdenv, fetchurl, libxml2, readline, zlib, perl, cairo, gtk3, gsl
|
|
, pkgconfig, gtksourceview, pango, gettext
|
|
, makeWrapper, gsettings-desktop-schemas, hicolor-icon-theme
|
|
, gnome3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pspp-1.0.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/pspp/${name}.tar.gz";
|
|
sha256 = "1r8smr5057993h90nx0mdnff8nxw9x546zzh6qpy4h3xblp1la5s";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ libxml2 readline zlib perl cairo gtk3 gsl
|
|
gtksourceview pango gettext
|
|
makeWrapper gsettings-desktop-schemas hicolor-icon-theme ];
|
|
|
|
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" \
|
|
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib gnome3.dconf}/lib/gio/modules"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://www.gnu.org/software/pspp/;
|
|
description = "A free replacement for SPSS, a program for statistical analysis of sampled data";
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
|
|
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.
|
|
'';
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|