forked from mirrors/nixpkgs
pspp: provide default icons & settings
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
This commit is contained in:
parent
3efea84fa1
commit
e0d6edddd7
|
@ -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 {
|
||||
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue