mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
gnomeExtensions: add runHook to {build,install}Phase
This commit is contained in:
parent
ae33b7daec
commit
8f2d4f9956
@ -18,10 +18,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
uuid = "appindicatorsupport@rgcjonas.gmail.com";
|
uuid = "appindicatorsupport@rgcjonas.gmail.com";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions/${uuid}
|
mkdir -p $out/share/gnome-shell/extensions/${uuid}
|
||||||
cp *.js $out/share/gnome-shell/extensions/${uuid}
|
cp *.js $out/share/gnome-shell/extensions/${uuid}
|
||||||
cp -r interfaces-xml $out/share/gnome-shell/extensions/${uuid}
|
cp -r interfaces-xml $out/share/gnome-shell/extensions/${uuid}
|
||||||
cp metadata.json $out/share/gnome-shell/extensions/${uuid}
|
cp metadata.json $out/share/gnome-shell/extensions/${uuid}
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -14,8 +14,10 @@ stdenv.mkDerivation rec {
|
|||||||
uuid = "battery_status@milliburn.github.com";
|
uuid = "battery_status@milliburn.github.com";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions
|
mkdir -p $out/share/gnome-shell/extensions
|
||||||
cp -r ${uuid} $out/share/gnome-shell/extensions/
|
cp -r ${uuid} $out/share/gnome-shell/extensions/
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -18,13 +18,17 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
${bash}/bin/bash ./update-locale.sh
|
${bash}/bin/bash ./update-locale.sh
|
||||||
glib-compile-schemas --strict --targetdir=caffeine@patapon.info/schemas/ caffeine@patapon.info/schemas
|
glib-compile-schemas --strict --targetdir=caffeine@patapon.info/schemas/ caffeine@patapon.info/schemas
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions
|
mkdir -p $out/share/gnome-shell/extensions
|
||||||
cp -r ${uuid} $out/share/gnome-shell/extensions
|
cp -r ${uuid} $out/share/gnome-shell/extensions
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -14,8 +14,10 @@ stdenv.mkDerivation rec {
|
|||||||
uuid = "clipboard-indicator@tudmotu.com";
|
uuid = "clipboard-indicator@tudmotu.com";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions/${uuid}
|
mkdir -p $out/share/gnome-shell/extensions/${uuid}
|
||||||
cp -r * $out/share/gnome-shell/extensions/${uuid}
|
cp -r * $out/share/gnome-shell/extensions/${uuid}
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -21,8 +21,10 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions
|
mkdir -p $out/share/gnome-shell/extensions
|
||||||
cp -r ${uuid} $out/share/gnome-shell/extensions/
|
cp -r ${uuid} $out/share/gnome-shell/extensions/
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -14,8 +14,10 @@ stdenv.mkDerivation rec {
|
|||||||
uuid = "icon-hider@kalnitsky.org";
|
uuid = "icon-hider@kalnitsky.org";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions
|
mkdir -p $out/share/gnome-shell/extensions
|
||||||
cp -r ${uuid} $out/share/gnome-shell/extensions
|
cp -r ${uuid} $out/share/gnome-shell/extensions
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -16,12 +16,16 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
make schemas
|
make schemas
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions
|
mkdir -p $out/share/gnome-shell/extensions
|
||||||
cp -r impatience $out/share/gnome-shell/extensions/${uuid}
|
cp -r impatience $out/share/gnome-shell/extensions/${uuid}
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
uuid = "impatience@gfxmonk.net";
|
uuid = "impatience@gfxmonk.net";
|
||||||
|
@ -17,8 +17,10 @@ stdenv.mkDerivation rec {
|
|||||||
uuid = "mprisindicatorbutton@JasonLG1979.github.io";
|
uuid = "mprisindicatorbutton@JasonLG1979.github.io";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions
|
mkdir -p $out/share/gnome-shell/extensions
|
||||||
cp -r ${uuid} $out/share/gnome-shell/extensions
|
cp -r ${uuid} $out/share/gnome-shell/extensions
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -18,8 +18,10 @@ stdenv.mkDerivation rec {
|
|||||||
uuid = "nightthemeswitcher@romainvigier.fr";
|
uuid = "nightthemeswitcher@romainvigier.fr";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions/
|
mkdir -p $out/share/gnome-shell/extensions/
|
||||||
cp -r src/ $out/share/gnome-shell/extensions/${uuid}
|
cp -r src/ $out/share/gnome-shell/extensions/${uuid}
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -16,8 +16,10 @@ stdenv.mkDerivation rec {
|
|||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions/${uuid}
|
mkdir -p $out/share/gnome-shell/extensions/${uuid}
|
||||||
cp -r . $out/share/gnome-shell/extensions/${uuid}
|
cp -r . $out/share/gnome-shell/extensions/${uuid}
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -15,10 +15,12 @@ stdenv.mkDerivation rec {
|
|||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
share_dir="$prefix/share"
|
share_dir="$prefix/share"
|
||||||
extensions_dir="$share_dir/gnome-shell/extensions/pidgin@muffinmad"
|
extensions_dir="$share_dir/gnome-shell/extensions/pidgin@muffinmad"
|
||||||
mkdir -p "$extensions_dir"
|
mkdir -p "$extensions_dir"
|
||||||
mv *.js metadata.json dbus.xml schemas locale "$extensions_dir"
|
mv *.js metadata.json dbus.xml schemas locale "$extensions_dir"
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
uuid = "pidgin@muffinmad";
|
uuid = "pidgin@muffinmad";
|
||||||
|
@ -18,9 +18,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
uuid = "remove-dropdown-arrows@mpdeimos.com";
|
uuid = "remove-dropdown-arrows@mpdeimos.com";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions/${uuid}
|
mkdir -p $out/share/gnome-shell/extensions/${uuid}
|
||||||
cp extension.js $out/share/gnome-shell/extensions/${uuid}
|
cp extension.js $out/share/gnome-shell/extensions/${uuid}
|
||||||
cp metadata.json $out/share/gnome-shell/extensions/${uuid}
|
cp metadata.json $out/share/gnome-shell/extensions/${uuid}
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -28,8 +28,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
uuid = "sound-output-device-chooser@kgshank.net";
|
uuid = "sound-output-device-chooser@kgshank.net";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions
|
mkdir -p $out/share/gnome-shell/extensions
|
||||||
cp -r ${uuid} $out/share/gnome-shell/extensions
|
cp -r ${uuid} $out/share/gnome-shell/extensions
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -27,12 +27,16 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
glib-compile-schemas --targetdir=${uuid}/schemas ${uuid}/schemas
|
glib-compile-schemas --targetdir=${uuid}/schemas ${uuid}/schemas
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions
|
mkdir -p $out/share/gnome-shell/extensions
|
||||||
cp -r ${uuid} $out/share/gnome-shell/extensions
|
cp -r ${uuid} $out/share/gnome-shell/extensions
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
uuid = "system-monitor@paradoxxx.zero.gmail.com";
|
uuid = "system-monitor@paradoxxx.zero.gmail.com";
|
||||||
|
@ -14,12 +14,16 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ glib ];
|
nativeBuildInputs = [ glib ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
glib-compile-schemas .
|
glib-compile-schemas .
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions/${uuid}
|
mkdir -p $out/share/gnome-shell/extensions/${uuid}
|
||||||
cp -r * $out/share/gnome-shell/extensions/${uuid}/
|
cp -r * $out/share/gnome-shell/extensions/${uuid}/
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
uuid = "tilingnome@rliang.github.com";
|
uuid = "tilingnome@rliang.github.com";
|
||||||
|
@ -13,8 +13,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
uuid = "timepp@zagortenay333";
|
uuid = "timepp@zagortenay333";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions/${uuid}
|
mkdir -p $out/share/gnome-shell/extensions/${uuid}
|
||||||
cp -r . $out/share/gnome-shell/extensions/${uuid}
|
cp -r . $out/share/gnome-shell/extensions/${uuid}
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -15,8 +15,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
uuid = "window-corner-preview@fabiomereu.it";
|
uuid = "window-corner-preview@fabiomereu.it";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions
|
mkdir -p $out/share/gnome-shell/extensions
|
||||||
cp -r ${uuid} $out/share/gnome-shell/extensions
|
cp -r ${uuid} $out/share/gnome-shell/extensions
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -14,8 +14,10 @@ stdenv.mkDerivation rec {
|
|||||||
uuid = "windowIsReady_Remover@nunofarruca@gmail.com";
|
uuid = "windowIsReady_Remover@nunofarruca@gmail.com";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions/
|
mkdir -p $out/share/gnome-shell/extensions/
|
||||||
cp -r ${uuid} $out/share/gnome-shell/extensions/${uuid}
|
cp -r ${uuid} $out/share/gnome-shell/extensions/${uuid}
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -21,8 +21,10 @@ stdenv.mkDerivation rec {
|
|||||||
buildFlags = "schemas";
|
buildFlags = "schemas";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
mkdir -p $out/share/gnome-shell/extensions
|
mkdir -p $out/share/gnome-shell/extensions
|
||||||
cp -r ${uuid} $out/share/gnome-shell/extensions
|
cp -r ${uuid} $out/share/gnome-shell/extensions
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user