2021-12-06 16:07:01 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, glib, nodePackages, gjs }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-shell-extension-pop-shell";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "unstable-2022-10-11";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pop-os";
|
|
|
|
repo = "shell";
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = "886a069c0582b371e90ac3602b1747ea5fba616c";
|
|
|
|
hash = "sha256-DwJ3IFhYuEW0LQrmN/mOspEiudj4X5BCLhdOyP74EVs=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ glib nodePackages.typescript gjs ];
|
|
|
|
|
|
|
|
buildInputs = [ gjs ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-gjs.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [ "XDG_DATA_HOME=$(out)/share" ];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
extensionUuid = "pop-shell@system76.com";
|
|
|
|
extensionPortalSlug = "pop-shell";
|
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
postPatch = ''
|
|
|
|
for file in */main.js; do
|
|
|
|
substituteInPlace $file --replace "gjs" "${gjs}/bin/gjs"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
chmod +x $out/share/gnome-shell/extensions/pop-shell@system76.com/*/main.js
|
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Keyboard-driven layer for GNOME Shell";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.genofire ];
|
|
|
|
homepage = "https://github.com/pop-os/shell";
|
|
|
|
};
|
|
|
|
}
|