53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
glib,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "rounded-windows-bms";
|
|
version = "2.2.0-bms-fix";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MeguMario";
|
|
repo = "rounded-windows";
|
|
rev = "bms-fix";
|
|
|
|
# Put a fake hash first; Nix will tell you the real one.
|
|
hash = "sha256-5llnqW1dK3jsMRfvxb1VrSkZ/DSXsfU3PiNmpbb5CLw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
glib
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
uuid="rounded-windows@marcosgt.github.io"
|
|
extension_dir="$out/share/gnome-shell/extensions/$uuid"
|
|
|
|
mkdir -p "$extension_dir"
|
|
|
|
cp metadata.json extension.js effect.js prefs.js stylesheet.css "$extension_dir/"
|
|
|
|
mkdir -p "$extension_dir/schemas"
|
|
cp schemas/*.xml "$extension_dir/schemas/"
|
|
|
|
glib-compile-schemas "$extension_dir/schemas"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
extensionUuid = "rounded-windows@marcosgt.github.io";
|
|
};
|
|
|
|
meta = {
|
|
description = "Rounded Window Corners GNOME extension with Blur-My-Shell compatibility fix";
|
|
homepage = "https://github.com/MeguMario/rounded-windows/tree/bms-fix";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
} |