mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 13:35:13 +00:00
parent
5ffc828912
commit
96e01b7e16
@ -1,8 +1,12 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, ddcutil
|
, ddcutil
|
||||||
, gjs
|
, gjs
|
||||||
|
, gnome
|
||||||
|
, gobject-introspection
|
||||||
, xprop
|
, xprop
|
||||||
, touchegg
|
, touchegg
|
||||||
|
, vte
|
||||||
|
, wrapGAppsHook
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
# Helper method to reduce redundancy
|
# Helper method to reduce redundancy
|
||||||
@ -25,6 +29,21 @@ super: lib.trivial.pipe super [
|
|||||||
meta.maintainers = with lib.maintainers; [ eperuffo jtojnar rhoriguchi ];
|
meta.maintainers = with lib.maintainers; [ eperuffo jtojnar rhoriguchi ];
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
(patchExtension "ddterm@amezin.github.com" (old: {
|
||||||
|
# Requires gjs, zenity & vte via the typelib
|
||||||
|
nativeBuildInputs = [ gobject-introspection wrapGAppsHook ];
|
||||||
|
buildInputs = [ vte ];
|
||||||
|
postPatch = ''
|
||||||
|
for file in *.js com.github.amezin.ddterm; do
|
||||||
|
substituteInPlace $file --replace "gjs" "${gjs}/bin/gjs"
|
||||||
|
substituteInPlace $file --replace "zenity" "${gnome.zenity}/bin/zenity"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
postFixup = ''
|
||||||
|
wrapGApp "$out/share/gnome-shell/extensions/ddterm@amezin.github.com/com.github.amezin.ddterm"
|
||||||
|
'';
|
||||||
|
}))
|
||||||
|
|
||||||
(patchExtension "display-brightness-ddcutil@themightydeity.github.com" (old: {
|
(patchExtension "display-brightness-ddcutil@themightydeity.github.com" (old: {
|
||||||
# Has a hard-coded path to a run-time dependency
|
# Has a hard-coded path to a run-time dependency
|
||||||
# https://github.com/NixOS/nixpkgs/issues/136111
|
# https://github.com/NixOS/nixpkgs/issues/136111
|
||||||
|
Loading…
Reference in New Issue
Block a user