9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, glib, gjs, typescript }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-shell-extension-pop-shell";
|
|
version = "unstable-2023-04-27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pop-os";
|
|
repo = "shell";
|
|
rev = "b5acccefcaa653791d25f70a22c0e04f1858d96e";
|
|
hash = "sha256-w6EBHKWJ4L3ZRVmFqZhCqHGumbElQXk9udYSnwjIl6c=";
|
|
};
|
|
|
|
nativeBuildInputs = [ glib gjs typescript ];
|
|
|
|
buildInputs = [ gjs ];
|
|
|
|
patches = [
|
|
./fix-gjs.patch
|
|
];
|
|
|
|
makeFlags = [ "XDG_DATA_HOME=$(out)/share" ];
|
|
|
|
passthru = {
|
|
extensionUuid = "pop-shell@system76.com";
|
|
extensionPortalSlug = "pop-shell";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
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";
|
|
};
|
|
}
|