nixpkgs/pkgs/desktops/pantheon/granite/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.4 KiB
Nix
Raw Normal View History

2021-11-24 01:54:56 +00:00
{ lib
, stdenv
, fetchFromGitHub
, python3
, meson
, ninja
, vala
2021-01-17 02:21:50 +00:00
, pkg-config
, libgee
, gtk3
, glib
, gettext
, gsettings-desktop-schemas
, gobject-introspection
, wrapGAppsHook
}:
stdenv.mkDerivation rec {
pname = "granite";
version = "6.2.0"; # nixpkgs-update: no auto update
outputs = [ "out" "dev" ];
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
2021-11-24 01:54:56 +00:00
sha256 = "sha256-WM0Wo9giVP5pkMFaPCHsMfnAP6xD71zg6QLCYV6lmkY=";
2018-08-20 20:31:18 +00:00
};
nativeBuildInputs = [
gettext
gobject-introspection
meson
2018-08-16 10:48:39 +00:00
ninja
2021-01-17 02:21:50 +00:00
pkg-config
python3
2018-08-20 20:31:18 +00:00
vala
wrapGAppsHook
];
propagatedBuildInputs = [
glib
gsettings-desktop-schemas # is_clock_format_12h uses "org.gnome.desktop.interface clock-format"
2018-08-16 10:48:39 +00:00
gtk3
2018-08-20 20:31:18 +00:00
libgee
];
postPatch = ''
chmod +x meson/post_install.py
patchShebangs meson/post_install.py
'';
meta = with lib; {
description = "An 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;
maintainers = teams.pantheon.members;
2021-10-28 02:47:36 +00:00
mainProgram = "granite-demo";
};
}