Skip to content

Commit

Permalink
pspp: provide default icons & settings
Browse files Browse the repository at this point in the history
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
  • Loading branch information
matthewbauer committed May 15, 2018
1 parent 3efea84 commit e0d6edd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pkgs/applications/science/math/pspp/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{ stdenv, fetchurl, libxml2, readline, zlib, perl, cairo, gtk3, gsl
, pkgconfig, gtksourceview, pango, gettext
, makeWrapper, gsettings-desktop-schemas, hicolor-icon-theme
, gnome3
}:

stdenv.mkDerivation rec {
Expand All @@ -12,12 +14,21 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libxml2 readline zlib perl cairo gtk3 gsl
gtksourceview pango gettext ];
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";
Expand Down

0 comments on commit e0d6edd

Please sign in to comment.