mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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 changed files with 12 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
{ stdenv, fetchurl, libxml2, readline, zlib, perl, cairo, gtk3, gsl
|
{ stdenv, fetchurl, libxml2, readline, zlib, perl, cairo, gtk3, gsl
|
||||||
, pkgconfig, gtksourceview, pango, gettext
|
, pkgconfig, gtksourceview, pango, gettext
|
||||||
|
, makeWrapper, gsettings-desktop-schemas, hicolor-icon-theme
|
||||||
|
, gnome3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -12,12 +14,21 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ libxml2 readline zlib perl cairo gtk3 gsl
|
buildInputs = [ libxml2 readline zlib perl cairo gtk3 gsl
|
||||||
gtksourceview pango gettext ];
|
gtksourceview pango gettext
|
||||||
|
makeWrapper gsettings-desktop-schemas hicolor-icon-theme ];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
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 = {
|
meta = {
|
||||||
homepage = http://www.gnu.org/software/pspp/;
|
homepage = http://www.gnu.org/software/pspp/;
|
||||||
description = "A free replacement for SPSS, a program for statistical analysis of sampled data";
|
description = "A free replacement for SPSS, a program for statistical analysis of sampled data";
|
||||||
|
|
Loading…
Reference in a new issue