Fix ibus by using a python.buildEnv.
This commit is contained in:
parent
64e4b9637b
commit
6dc4b5229b
|
@ -48,6 +48,9 @@ let
|
|||
sha256 = "1a3qzsab7vzjqpdialp1g8ppr21x05v0ph8ngyq9pyjkx4vzcdi7";
|
||||
};
|
||||
};
|
||||
pyEnv = python3.buildEnv.override {
|
||||
extraLibs = [ python3.pkgs.pygobject3 ];
|
||||
};
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "ibus-${version}";
|
||||
version = "1.5.16";
|
||||
|
@ -77,16 +80,16 @@ in stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
buildInputs = [
|
||||
python3
|
||||
pyEnv
|
||||
intltool isocodes pkgconfig
|
||||
gtk2 gtk3 dconf
|
||||
json_glib
|
||||
dbus libnotify gobjectIntrospection wayland
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ glib python3.pkgs.pygobject3 ];
|
||||
propagatedBuildInputs = [ glib ];
|
||||
|
||||
nativeBuildInputs = [ wrapGAppsHook python3.pkgs.wrapPython ];
|
||||
nativeBuildInputs = [ wrapGAppsHook ];
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
|
@ -104,11 +107,6 @@ in stdenv.mkDerivation rec {
|
|||
substituteInPlace data/dconf/Makefile.in --replace "dconf update" "echo"
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
buildPythonPath $out
|
||||
patchPythonScript $out/share/ibus/setup/main.py
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = "$out/bin/ibus version";
|
||||
|
||||
|
|
Loading…
Reference in New Issue