Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

76 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
meson,
ninja,
sassc,
vala,
pkg-config,
libgee,
libshumate,
gtk4,
glib,
gettext,
gsettings-desktop-schemas,
gobject-introspection,
wrapGAppsHook4,
}:
stdenv.mkDerivation rec {
pname = "granite";
version = "7.7.0";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "elementary";
repo = "granite";
rev = version;
sha256 = "sha256-ypSkzz9BaVweR1C0OkkfwDl8tehMK1S5iExL14LuKmI=";
};
nativeBuildInputs = [
gettext
gobject-introspection
meson
ninja
pkg-config
sassc
vala
wrapGAppsHook4
];
buildInputs = [
libshumate # demo
];
propagatedBuildInputs = [
glib
gsettings-desktop-schemas # is_clock_format_12h uses "org.gnome.desktop.interface clock-format"
gtk4
libgee
];
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
description = "Extension to GTK used by elementary OS";
longDescription = ''
Granite is a companion library for GTK and GLib. Among other things, it provides complex widgets and convenience functions
designed for use in apps built for elementary OS.
'';
homepage = "https://github.com/elementary/granite";
license = licenses.lgpl3Plus;
platforms = platforms.linux;
teams = [ teams.pantheon ];
mainProgram = "granite-7-demo";
};
}