mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-26 00:19:01 +00:00
gnome-shell-extension-pop-shell: unstable-2022-01-19 -> unstable-2022-06-25
This commit is contained in:
parent
0a2eb50487
commit
43b1d540ee
@ -1,31 +1,33 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, glib, nodePackages }:
|
{ lib, stdenv, fetchFromGitHub, glib, nodePackages, gjs }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gnome-shell-extension-pop-shell";
|
pname = "gnome-shell-extension-pop-shell";
|
||||||
version = "unstable-2022-01-19";
|
version = "unstable-2022-06-25";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pop-os";
|
owner = "pop-os";
|
||||||
repo = "shell";
|
repo = "shell";
|
||||||
rev = "21745c4a8076ad52c9ccc77ca5726f5c7b83de6c";
|
rev = "811201b37a6dafa51539f26cf7da029d4ccdbafb";
|
||||||
sha256 = "sha256-d6NRNbTimwtGVLhcpdFD1AuignVii/xi3YtMWzkS/v0=";
|
sha256 = "sha256-PUreQ+eNqZfAWb100M9psG5Wo9b7CRx2uO7XEGma6kE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ glib nodePackages.typescript ];
|
nativeBuildInputs = [ glib nodePackages.typescript gjs ];
|
||||||
skipConfigure = true;
|
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"INSTALLBASE=$(out)/share/gnome-shell/extensions"
|
"XDG_DATA_HOME=$(out)/share"
|
||||||
"PLUGIN_BASE=$(out)/lib/pop-shell/launcher"
|
|
||||||
"SCRIPTS_BASE=$(out)/lib/pop-shell/scripts"
|
|
||||||
"UUID=${passthru.extensionUuid}"
|
"UUID=${passthru.extensionUuid}"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
preFixup = ''
|
||||||
install -Dm644 $out/share/gnome-shell/extensions/${passthru.extensionUuid}/schemas/* -t "${
|
shellExtension="$out/share/gnome-shell/extensions/${passthru.extensionUuid}"
|
||||||
glib.makeSchemaPath "$out" "${pname}-${version}"
|
chmod +x $shellExtension/*/main.js
|
||||||
}"
|
|
||||||
|
|
||||||
|
for file in $shellExtension/*/main.js; do
|
||||||
|
substituteInPlace "$file" --replace "#!/usr/bin/gjs" "#!${gjs}/bin/gjs"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
# TODO: Uncomment once custom gsettings works.
|
# TODO: Uncomment once custom gsettings works.
|
||||||
# Unfortunately custom gsettings seems to be not properly integrated with NixOS yet.
|
# Unfortunately custom gsettings seems to be not properly integrated with NixOS yet.
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user