nixpkgs/pkgs/by-name/ps/pspp/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

59 lines
2.0 KiB
Nix

{ lib, stdenv, fetchurl, libxml2, readline, zlib, perl, cairo, gtk3, gsl
, pkg-config, gtksourceview4, pango, gettext, dconf
, makeWrapper, gsettings-desktop-schemas, hicolor-icon-theme
, texinfo, ssw, python3, iconv
}:
stdenv.mkDerivation rec {
pname = "pspp";
version = "2.0.1";
src = fetchurl {
url = "mirror://gnu/pspp/${pname}-${version}.tar.gz";
sha256 = "sha256-jtuw8J6M+AEMrZ4FWeAjDX/FquRyHHVsNQVU3zMCTAA=";
};
nativeBuildInputs = [ pkg-config texinfo python3 makeWrapper ];
buildInputs = [ libxml2 readline zlib perl cairo gtk3 gsl
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;
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 : "${lib.getLib dconf}/lib/gio/modules"
'';
meta = {
homepage = "https://www.gnu.org/software/pspp/";
description = "Free replacement for SPSS, a program for statistical analysis of sampled data";
license = 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 = lib.platforms.unix;
};
}