diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-05-15 15:26:59 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-05-15 15:42:13 -0500 |
commit | e0d6edddd7f3df2cecbe24c527f8dc5286564235 (patch) | |
tree | 399af4b548b0a101cff85e9fff2bbb5361da4581 /pkgs | |
parent | 3efea84fa1991d027ae27cee0f0c622a65908772 (diff) | |
download | nixpkgs-e0d6edddd7f3df2cecbe24c527f8dc5286564235.tar nixpkgs-e0d6edddd7f3df2cecbe24c527f8dc5286564235.tar.gz nixpkgs-e0d6edddd7f3df2cecbe24c527f8dc5286564235.tar.bz2 nixpkgs-e0d6edddd7f3df2cecbe24c527f8dc5286564235.tar.lz nixpkgs-e0d6edddd7f3df2cecbe24c527f8dc5286564235.tar.xz nixpkgs-e0d6edddd7f3df2cecbe24c527f8dc5286564235.tar.zst nixpkgs-e0d6edddd7f3df2cecbe24c527f8dc5286564235.zip |
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
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/science/math/pspp/default.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/applications/science/math/pspp/default.nix b/pkgs/applications/science/math/pspp/default.nix index 957a4cf6421..1afbc2b72e5 100644 --- a/pkgs/applications/science/math/pspp/default.nix +++ b/pkgs/applications/science/math/pspp/default.nix @@ -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"; |