8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
44 lines
650 B
Nix
44 lines
650 B
Nix
{ accountsservice
|
|
, glib
|
|
, gobject-introspection
|
|
, python3
|
|
, wrapGAppsHook
|
|
, lib
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication {
|
|
name = "set-session";
|
|
|
|
format = "other";
|
|
|
|
src = ./set-session.py;
|
|
|
|
dontUnpack = true;
|
|
|
|
strictDeps = false;
|
|
|
|
nativeBuildInputs = [
|
|
wrapGAppsHook
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
accountsservice
|
|
glib
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pygobject3
|
|
ordered-set
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp $src $out/bin/set-session
|
|
chmod +x $out/bin/set-session
|
|
'';
|
|
|
|
meta = with lib; {
|
|
maintainers = with maintainers; [ worldofpeace ];
|
|
};
|
|
}
|