Skip to content

Commit 42031bc

Browse files
committed
feat(gnome): Add GNOME Nix package to Breezy
1 parent a22a94e commit 42031bc

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

nix/packages/breezy-gnome.nix

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
self,
3+
lib,
4+
stdenv,
5+
glib,
6+
gnome-shell,
7+
...
8+
}:
9+
stdenv.mkDerivation (finalAttrs: {
10+
pname = "breezy-gnome";
11+
version = "unstable";
12+
13+
src = "${self}/gnome/src";
14+
15+
buildInputs = [
16+
glib
17+
];
18+
19+
20+
DEST_DIR = "$TMPDIR/build/${finalAttrs.uuid}";
21+
22+
buildPhase = ''
23+
runHook preBuild
24+
25+
glib-compile-schemas schemas
26+
27+
runHook postBuild
28+
'';
29+
30+
installPhase = ''
31+
runHook preInstall
32+
extensions_dir="$out/share/gnome-shell/extensions/${finalAttrs.uuid}"
33+
mkdir -p "$extensions_dir"
34+
35+
cp -RLv $src/{schemas,*.js,*.frag,metadata.json,dbus-interfaces,textures} "$extensions_dir"
36+
37+
runHook postInstall
38+
'';
39+
40+
meta = {
41+
homepage = "https://github.com/wheaney/breezy-desktop";
42+
maintainers = with lib.maintainers; [shymega];
43+
platforms = lib.platforms.linux;
44+
};
45+
})
46+

0 commit comments

Comments
 (0)