onboard: cleanups
* workaround #56943 * fix xdg autostart installed to site-packages * delete ubuntu icons
This commit is contained in:
parent
8a530a0bab
commit
896da41892
@ -29,14 +29,22 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
customHunspell = hunspellWithDicts [hunspellDicts.en-us];
|
|
||||||
|
customHunspell = hunspellWithDicts [
|
||||||
|
hunspellDicts.en-us
|
||||||
|
];
|
||||||
|
|
||||||
majorVersion = "1.4";
|
majorVersion = "1.4";
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
python3.pkgs.buildPythonApplication rec {
|
||||||
|
pname = "onboard";
|
||||||
version = "${majorVersion}.1";
|
version = "${majorVersion}.1";
|
||||||
in python3.pkgs.buildPythonApplication rec {
|
|
||||||
name = "onboard-${version}";
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://launchpad.net/onboard/${majorVersion}/${version}/+download/${name}.tar.gz";
|
url = "https://launchpad.net/onboard/${majorVersion}/${version}/+download/${pname}-${version}.tar.gz";
|
||||||
sha256 = "01cae1ac5b1ef1ab985bd2d2d79ded6fc99ee04b1535cc1bb191e43a231a3865";
|
sha256 = "0r9q38ikmr4in4dwqd8m9gh9xjbgxnfxglnjbfcapw8ybfnf3jh1";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -48,9 +56,42 @@ in python3.pkgs.buildPythonApplication rec {
|
|||||||
./hunspell-use-xdg-datadirs.patch
|
./hunspell-use-xdg-datadirs.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
# For tests
|
nativeBuildInputs = [
|
||||||
LC_ALL = "en_US.UTF-8";
|
gobject-introspection
|
||||||
doCheck = false;
|
intltool
|
||||||
|
pkgconfig
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
bash
|
||||||
|
glib
|
||||||
|
gnome3.dconf
|
||||||
|
gsettings-desktop-schemas
|
||||||
|
gtk3
|
||||||
|
hunspell
|
||||||
|
isocodes
|
||||||
|
libcanberra-gtk3
|
||||||
|
libxkbcommon
|
||||||
|
mousetweaks
|
||||||
|
udev
|
||||||
|
xorg.libXtst
|
||||||
|
xorg.libxkbfile
|
||||||
|
] ++ stdenv.lib.optional atspiSupport at-spi2-core;
|
||||||
|
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
dbus-python
|
||||||
|
distutils_extra
|
||||||
|
pyatspi
|
||||||
|
pycairo
|
||||||
|
pygobject3
|
||||||
|
systemd
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedUserEnvPkgs = [
|
||||||
|
gnome3.dconf
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
# for Onboard.SpellChecker.aspell_cmd doctests
|
# for Onboard.SpellChecker.aspell_cmd doctests
|
||||||
(aspellWithDicts (dicts: with dicts; [ en ]))
|
(aspellWithDicts (dicts: with dicts; [ en ]))
|
||||||
@ -66,43 +107,10 @@ in python3.pkgs.buildPythonApplication rec {
|
|||||||
python3.pkgs.nose
|
python3.pkgs.nose
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
# Temporary fix, see https://github.com/NixOS/nixpkgs/issues/56943
|
||||||
glib
|
strictDeps = false;
|
||||||
python3
|
|
||||||
python3.pkgs.dbus-python
|
|
||||||
python3.pkgs.distutils_extra
|
|
||||||
python3.pkgs.pyatspi
|
|
||||||
python3.pkgs.pycairo
|
|
||||||
python3.pkgs.pygobject3
|
|
||||||
python3.pkgs.systemd
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
doCheck = false;
|
||||||
bash
|
|
||||||
gnome3.dconf
|
|
||||||
gsettings-desktop-schemas
|
|
||||||
gtk3
|
|
||||||
hunspell
|
|
||||||
isocodes
|
|
||||||
libcanberra-gtk3
|
|
||||||
mousetweaks
|
|
||||||
udev
|
|
||||||
libxkbcommon
|
|
||||||
wrapGAppsHook
|
|
||||||
xorg.libXtst
|
|
||||||
xorg.libxkbfile
|
|
||||||
] ++ stdenv.lib.optional atspiSupport at-spi2-core;
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
glibcLocales
|
|
||||||
gobject-introspection # populate GI_TYPELIB_PATH
|
|
||||||
intltool
|
|
||||||
pkgconfig
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [
|
|
||||||
gnome3.dconf
|
|
||||||
];
|
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
# Unnecessary file, has been removed upstream
|
# Unnecessary file, has been removed upstream
|
||||||
@ -118,6 +126,9 @@ in python3.pkgs.buildPythonApplication rec {
|
|||||||
|
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
|
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "/etc" "$out/etc"
|
||||||
|
|
||||||
substituteInPlace ./Onboard/LanguageSupport.py \
|
substituteInPlace ./Onboard/LanguageSupport.py \
|
||||||
--replace "/usr/share/xml/iso-codes" "${isocodes}/share/xml/iso-codes" \
|
--replace "/usr/share/xml/iso-codes" "${isocodes}/share/xml/iso-codes" \
|
||||||
--replace "/usr/bin/yelp" "${yelp}/bin/yelp"
|
--replace "/usr/bin/yelp" "${yelp}/bin/yelp"
|
||||||
@ -149,16 +160,22 @@ in python3.pkgs.buildPythonApplication rec {
|
|||||||
--replace '"killall",' '"${procps}/bin/pkill", "-x",'
|
--replace '"killall",' '"${procps}/bin/pkill", "-x",'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
installPhase = ''
|
||||||
cp onboard-default-settings.gschema.override.example $out/share/glib-2.0/schemas/10_onboard-default-settings.gschema.override
|
${python3.interpreter} setup.py install --prefix="$out"
|
||||||
|
|
||||||
|
cp onboard-default-settings.gschema.override.example $out/share/glib-2.0/schemas/10_onboard-default-settings.gschema.override
|
||||||
glib-compile-schemas $out/share/glib-2.0/schemas/
|
glib-compile-schemas $out/share/glib-2.0/schemas/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
# Remove ubuntu icons.
|
||||||
|
postFixup = ''
|
||||||
|
rm -rf $out/share/icons/ubuntu-mono-*
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
homepage = https://launchpad.net/onboard;
|
homepage = https://launchpad.net/onboard;
|
||||||
description = "An onscreen keyboard useful for tablet PC users and for mobility impaired users.";
|
description = "Onscreen keyboard useful for tablet PC users and for mobility impaired users";
|
||||||
maintainers = with stdenv.lib.maintainers; [ johnramsden ];
|
maintainers = with maintainers; [ johnramsden ];
|
||||||
license = stdenv.lib.licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user