c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, glib, nodePackages, gjs }:
|
|
|
|
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 nodePackages.typescript gjs ];
|
|
|
|
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";
|
|
};
|
|
}
|