Skip to content

Instantly share code, notes, and snippets.

@pbogdan
Created September 17, 2020 19:26
Show Gist options
  • Save pbogdan/f5fa120b3ba07ce30fba07624665910d to your computer and use it in GitHub Desktop.
Save pbogdan/f5fa120b3ba07ce30fba07624665910d to your computer and use it in GitHub Desktop.
{ stdenv
, fetchFromGitHub
, gobject-introspection
, wrapGAppsHook
, gtk3
, webkitgtk
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "gp-saml-gui";
version = "2020-08-27";
src = fetchFromGitHub {
owner = "dlenski";
repo = "gp-saml-gui";
rev = "bb4a80e2ff2ac4dfc524549ea036d44f0e129df6";
sha256 = "12d9zj0jm3s22986v2aav5il4qc9kb8ijr54gvms173zcshz6bqg";
};
format = "other";
nativeBuildInputs = [
gobject-introspection
wrapGAppsHook
];
buildInputs = [
gtk3
webkitgtk
];
propagatedBuildInputs = with python3.pkgs; [
pygobject3
requests
];
strictDeps = false;
dontWrapGApps = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp gp-saml-gui.py $out/bin/gp-saml-gui
runHook postInstall
'';
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment