sxmo-utils: define a hooks passthru package
This commit is contained in:
parent
9b5c39e3c5
commit
3f9261d765
|
@ -1,4 +1,5 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
|
, callPackage
|
||||||
, fetchgit
|
, fetchgit
|
||||||
, gitUpdater
|
, gitUpdater
|
||||||
, lib
|
, lib
|
||||||
|
@ -35,6 +36,7 @@ stdenv.mkDerivation rec {
|
||||||
passthru = {
|
passthru = {
|
||||||
providedSessions = [ "sxmo" "swmo" ];
|
providedSessions = [ "sxmo" "swmo" ];
|
||||||
updateScript = gitUpdater { };
|
updateScript = gitUpdater { };
|
||||||
|
hooks = callPackage ./hooks.nix { };
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
12
pkgs/additional/sxmo-utils/hooks.nix
Normal file
12
pkgs/additional/sxmo-utils/hooks.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user