about summary refs log tree commit diff
path: root/pkgs/development/libraries/lgi/default.nix
blob: 663185831f63eb1effa65de310faf11772783c83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl, pkgconfig, gobjectIntrospection, lua, glib }:

stdenv.mkDerivation {
  name = "lgi-0.7.2";

  src = fetchurl {
    url    = https://github.com/pavouk/lgi/archive/0.7.2.tar.gz;
    sha256 = "0ihl7gg77b042vsfh0k7l53b7sl3d7mmrq8ns5lrsf71dzrr19bn";
  };

  meta = with stdenv.lib; {
    description = "Gobject-introspection based dynamic Lua binding to GObject based libraries";
    homepage    = https://github.com/pavouk/lgi;
    license     = "custom";
    maintainers = with maintainers; [ lovek323 ];
    platforms   = platforms.unix;
  };

  buildInputs = [ glib gobjectIntrospection lua pkgconfig ];

  preBuild = ''
    sed -i "s|/usr/local|$out|" lgi/Makefile
  '';
}