uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchFromGitHub, substituteAll, gjs, vte, gnome }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gnome-shell-extension-drop-down-terminal";
|
||||
version = "unstable-2020-03-25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zzrough";
|
||||
repo = "gs-extensions-drop-down-terminal";
|
||||
rev = "a59669afdb395b3315619f62c1f740f8b2f0690d";
|
||||
sha256 = "0igfxgrjdqq6z6xg4rsawxn261pk25g5dw2pm3bhwz5sqsy4bq3i";
|
||||
};
|
||||
|
||||
passthru = {
|
||||
extensionUuid = "drop-down-terminal@gs-extensions.zzrough.org";
|
||||
extensionPortalSlug = "drop-down-terminal";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix_vte_and_gjs.patch;
|
||||
inherit gjs vte;
|
||||
})
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/gnome-shell/extensions
|
||||
cp -r "drop-down-terminal@gs-extensions.zzrough.org" $out/share/gnome-shell/extensions/
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Configurable drop down terminal shell";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ ericdallo ];
|
||||
homepage = "https://github.com/zzrough/gs-extensions-drop-down-terminal";
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
--- a/drop-down-terminal@gs-extensions.zzrough.org/extension.js
|
||||
+++ b/drop-down-terminal@gs-extensions.zzrough.org/extension.js
|
||||
@@ -15,6 +15,8 @@
|
||||
|
||||
// Author: Stéphane Démurget <stephane.demurget@free.fr>
|
||||
|
||||
+imports.gi.GIRepository.Repository.prepend_search_path('@vte@/lib/girepository-1.0')
|
||||
+
|
||||
const Lang = imports.lang;
|
||||
const Gettext = imports.gettext.domain("drop-down-terminal");
|
||||
const Mainloop = imports.mainloop;
|
||||
@@ -653,7 +655,7 @@ const DropDownTerminalExtension = new Lang.Class({
|
||||
this._killingChild = false;
|
||||
|
||||
// finds the forking arguments
|
||||
- let args = ["gjs", GLib.build_filenamev([Me.path, "terminal.js"]), Me.path];
|
||||
+ let args = ["@gjs@/bin/gjs", GLib.build_filenamev([Me.path, "terminal.js"]), Me.path];
|
||||
|
||||
// forks the process
|
||||
debug("forking '" + args.join(" ") + "'");
|
||||
--- a/drop-down-terminal@gs-extensions.zzrough.org/terminal.js
|
||||
+++ b/drop-down-terminal@gs-extensions.zzrough.org/terminal.js
|
||||
@@ -14,6 +14,9 @@
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Author: Stéphane Démurget <stephane.demurget@free.fr>
|
||||
+
|
||||
+imports.gi.GIRepository.Repository.prepend_search_path('@vte@/lib/girepository-1.0')
|
||||
+
|
||||
const Lang = imports.lang;
|
||||
|
||||
const Pango = imports.gi.Pango;
|
||||
Loading…
Add table
Add a link
Reference in a new issue