nixpkgs/pkgs/development/libraries/gsignond/wrapper.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
932 B
Nix
Raw Normal View History

{ makeWrapper, symlinkJoin, gsignond, plugins }:
2018-07-07 12:49:11 +00:00
symlinkJoin {
name = "gsignond-with-plugins-${gsignond.version}";
paths = [ gsignond ] ++ plugins;
nativeBuildInputs = [ makeWrapper ];
2018-07-07 12:49:11 +00:00
postBuild = ''
wrapProgram $out/bin/gsignond \
--set SSO_GPLUGINS_DIR "$out/lib/gsignond/gplugins"
rm $out/share/dbus-1/services/com.google.code.AccountsSSO.gSingleSignOn.service
rm $out/share/dbus-1/services/com.google.code.AccountsSSO.SingleSignOn.service
substitute ${gsignond}/share/dbus-1/services/com.google.code.AccountsSSO.gSingleSignOn.service $out/share/dbus-1/services/com.google.code.AccountsSSO.gSingleSignOn.service \
--replace ${gsignond} $out
substitute ${gsignond}/share/dbus-1/services/com.google.code.AccountsSSO.SingleSignOn.service $out/share/dbus-1/services/com.google.code.AccountsSSO.SingleSignOn.service \
--replace ${gsignond} $out
'';
2018-11-30 03:04:46 +00:00
inherit (gsignond) meta;
2018-07-07 12:49:11 +00:00
}