python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / gsignond / wrapper.nix
blob9b31a2213ceb12c0975219fa5b6acab348bdac54
1 { makeWrapper, symlinkJoin, gsignond, plugins }:
3 symlinkJoin {
4   name = "gsignond-with-plugins-${gsignond.version}";
6   paths = [ gsignond ] ++ plugins;
8   nativeBuildInputs = [ makeWrapper ];
10   postBuild = ''
11     wrapProgram $out/bin/gsignond \
12       --set SSO_GPLUGINS_DIR "$out/lib/gsignond/gplugins"
14     rm $out/share/dbus-1/services/com.google.code.AccountsSSO.gSingleSignOn.service
15     rm $out/share/dbus-1/services/com.google.code.AccountsSSO.SingleSignOn.service
17     substitute ${gsignond}/share/dbus-1/services/com.google.code.AccountsSSO.gSingleSignOn.service $out/share/dbus-1/services/com.google.code.AccountsSSO.gSingleSignOn.service \
18       --replace ${gsignond} $out
20     substitute ${gsignond}/share/dbus-1/services/com.google.code.AccountsSSO.SingleSignOn.service $out/share/dbus-1/services/com.google.code.AccountsSSO.SingleSignOn.service \
21       --replace ${gsignond} $out
22   '';
24   inherit (gsignond) meta;