From b1bc2bf6c66247614aff06062fc70c7f57ec0cb0 Mon Sep 17 00:00:00 2001 From: ng0 Date: Sat, 20 Aug 2016 20:44:04 +0000 Subject: [PATCH 2/2] gnu: Add lua-lgi. * gnu/packages/lua.scm (lua-lgi): New variable. --- gnu/packages/lua.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index b4b5dee..e32ed80 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2014 Mark H Weaver ;;; Copyright © 2014 Andreas Enge ;;; Copyright © 2016 Efraim Flashner +;;; Copyright © 2016 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -26,6 +27,9 @@ #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (gnu packages) + #:use-module (gnu packages glib) + #:use-module (gnu packages gtk) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages readline)) (define-public lua @@ -107,3 +111,36 @@ programming language. Lua is a powerful, dynamic and light-weight programming language. It may be embedded or used as a general-purpose, stand-alone language.") (license x11))) + +(define-public lua-lgi + (package + (name "lua-lgi") + (version "0.9.1") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/pavouk/" + "lgi" "/archive/" version + ".tar.gz")) + (file-name (string-append name "-" version)) + (sha256 + (base32 + "1fmgdl5y4ph3yc6ycg865s3vai1rjkyda61cgqxk6zd13hmznw0c")))) + (build-system gnu-build-system) + (arguments + `(#:phases (alist-delete 'configure %standard-phases) + #:make-flags (list (string-append "PREFIX=" + (assoc-ref %outputs "out")) + "CC=gcc"))) + (inputs + `(("glib" ,glib) + ("gobject-introspection" ,gobject-introspection) + ("lua" ,lua) + ("cairo" ,cairo))) + (native-inputs + `(("pkg-config" ,pkg-config))) + ;;make , make install [PREFIX=] [DESTDIR=] + (home-page "https://github.com/pavouk/lgi/") + (synopsis "Dynamic Lua binding to GObject libraries using GObject-introspection") + (description "Dynamic Lua binding to GObject libraries using GObject-introspection. +Yeah, look, new stuff.") + (license x11))) -- 2.9.3