66 lines
1.4 KiB
Nix
66 lines
1.4 KiB
Nix
{
|
|
self,
|
|
version,
|
|
lib,
|
|
stdenv,
|
|
glib,
|
|
}:
|
|
let
|
|
extensionUuid = "breezydesktop@xronlinux.com";
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "gnome-shell-extension-breezy-desktop";
|
|
inherit version;
|
|
|
|
src = self;
|
|
|
|
nativeBuildInputs = [
|
|
glib # for glib-compile-schemas
|
|
];
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
|
|
passthru = {
|
|
inherit extensionUuid;
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
extDir=$out/share/gnome-shell/extensions/${extensionUuid}
|
|
mkdir -p $extDir
|
|
|
|
# JavaScript source files
|
|
cd gnome/src
|
|
for f in *.js metadata.json; do
|
|
install -Dm644 "$f" "$extDir/$f"
|
|
done
|
|
|
|
# Fragment shader (resolve symlink)
|
|
cp -L Sombrero.frag "$extDir/Sombrero.frag"
|
|
|
|
# D-Bus interfaces
|
|
mkdir -p "$extDir/dbus-interfaces"
|
|
cp dbus-interfaces/*.xml "$extDir/dbus-interfaces/"
|
|
|
|
# Textures (resolve symlinks)
|
|
mkdir -p "$extDir/textures"
|
|
cp -L textures/* "$extDir/textures/"
|
|
|
|
# GSettings schema (resolve symlink and compile)
|
|
mkdir -p "$extDir/schemas"
|
|
cp -L schemas/*.xml "$extDir/schemas/"
|
|
glib-compile-schemas "$extDir/schemas"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "GNOME Shell extension for Breezy Desktop XR virtual display";
|
|
homepage = "https://github.com/wheaney/breezy-desktop";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|