sxmo-utils: define a hooks passthru package

This commit is contained in:
Colin 2023-05-17 07:00:39 +00:00
parent 9b5c39e3c5
commit 3f9261d765
2 changed files with 14 additions and 0 deletions

View File

@ -1,4 +1,5 @@
{ stdenv
, callPackage
, fetchgit
, gitUpdater
, lib
@ -35,6 +36,7 @@ stdenv.mkDerivation rec {
passthru = {
providedSessions = [ "sxmo" "swmo" ];
updateScript = gitUpdater { };
hooks = callPackage ./hooks.nix { };
};
meta = {

View File

@ -0,0 +1,12 @@
{ stdenv
, sxmo-utils
}:
stdenv.mkDerivation rec {
pname = "sxmo-utils-default-hooks";
inherit (sxmo-utils) version;
installPhase = ''
mkdir -p $out
ln -s ${sxmo-utils}/share/sxmo/default_hooks $out/bin
'';
}