2018-02-09 12:23:37 +01:00
|
|
|
{ stdenv, fetchFromGitHub, perl, cmake, ninja, vala, pkgconfig, gobjectIntrospection, glib, gtk3, gnome3, gettext }:
|
2014-10-08 18:18:37 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-03 03:01:54 +01:00
|
|
|
name = "granite-${version}";
|
|
|
|
version = "0.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = "granite";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "15l8z1jkqhvappnr8jww27lfy3dwqybgsxk5iccyvnvzpjdh2s0h";
|
2014-10-08 18:18:37 +02:00
|
|
|
};
|
2018-02-03 03:01:54 +01:00
|
|
|
|
2018-02-09 12:23:37 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DINTROSPECTION_GIRDIR=share/gir-1.0/"
|
|
|
|
"-DINTROSPECTION_TYPELIBDIR=lib/girepository-1.0"
|
|
|
|
];
|
2018-02-03 03:01:54 +01:00
|
|
|
|
2018-02-09 12:23:37 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
vala
|
|
|
|
pkgconfig
|
|
|
|
cmake
|
|
|
|
ninja
|
|
|
|
perl
|
|
|
|
gettext
|
|
|
|
gobjectIntrospection
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
gnome3.libgee
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-10-08 18:18:37 +02:00
|
|
|
description = "An extension to GTK+ used by elementary OS";
|
|
|
|
longDescription = "An extension to GTK+ that provides several useful widgets and classes to ease application development. Designed for elementary OS.";
|
2018-02-03 03:01:54 +01:00
|
|
|
homepage = https://github.com/elementary/granite;
|
2018-02-09 12:23:37 +01:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.vozz ];
|
2014-10-08 18:18:37 +02:00
|
|
|
};
|
|
|
|
}
|