mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 11:34:13 +00:00
granite: refactor package
* move build time dependencies into nativeBuildInputs * convert cmakeFlags to an array * use `with` in the meta section * add `ninja`
This commit is contained in:
parent
0f15b33912
commit
197d9a8d90
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, perl, cmake, vala, pkgconfig, gobjectIntrospection, glib, gtk3, gnome3, gettext }:
|
{ stdenv, fetchFromGitHub, perl, cmake, ninja, vala, pkgconfig, gobjectIntrospection, glib, gtk3, gnome3, gettext }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "granite-${version}";
|
name = "granite-${version}";
|
||||||
@ -11,16 +11,32 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "15l8z1jkqhvappnr8jww27lfy3dwqybgsxk5iccyvnvzpjdh2s0h";
|
sha256 = "15l8z1jkqhvappnr8jww27lfy3dwqybgsxk5iccyvnvzpjdh2s0h";
|
||||||
};
|
};
|
||||||
|
|
||||||
cmakeFlags = "-DINTROSPECTION_GIRDIR=share/gir-1.0/ -DINTROSPECTION_TYPELIBDIR=lib/girepository-1.0";
|
cmakeFlags = [
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
"-DINTROSPECTION_GIRDIR=share/gir-1.0/"
|
||||||
buildInputs = [perl cmake vala gobjectIntrospection glib gtk3 gnome3.libgee gettext];
|
"-DINTROSPECTION_TYPELIBDIR=lib/girepository-1.0"
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
nativeBuildInputs = [
|
||||||
|
vala
|
||||||
|
pkgconfig
|
||||||
|
cmake
|
||||||
|
ninja
|
||||||
|
perl
|
||||||
|
gettext
|
||||||
|
gobjectIntrospection
|
||||||
|
];
|
||||||
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
gtk3
|
||||||
|
gnome3.libgee
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
description = "An extension to GTK+ used by elementary OS";
|
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.";
|
longDescription = "An extension to GTK+ that provides several useful widgets and classes to ease application development. Designed for elementary OS.";
|
||||||
homepage = https://github.com/elementary/granite;
|
homepage = https://github.com/elementary/granite;
|
||||||
license = stdenv.lib.licenses.lgpl3;
|
license = licenses.lgpl3;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [ stdenv.lib.maintainers.vozz ];
|
maintainers = [ maintainers.vozz ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user