mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
197d9a8d90
* move build time dependencies into nativeBuildInputs * convert cmakeFlags to an array * use `with` in the meta section * add `ninja`
43 lines
1.0 KiB
Nix
43 lines
1.0 KiB
Nix
{ stdenv, fetchFromGitHub, perl, cmake, ninja, vala, pkgconfig, gobjectIntrospection, glib, gtk3, gnome3, gettext }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "granite-${version}";
|
|
version = "0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "elementary";
|
|
repo = "granite";
|
|
rev = version;
|
|
sha256 = "15l8z1jkqhvappnr8jww27lfy3dwqybgsxk5iccyvnvzpjdh2s0h";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DINTROSPECTION_GIRDIR=share/gir-1.0/"
|
|
"-DINTROSPECTION_TYPELIBDIR=lib/girepository-1.0"
|
|
];
|
|
|
|
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";
|
|
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;
|
|
license = licenses.lgpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.vozz ];
|
|
};
|
|
}
|