summary refs log tree commit diff
path: root/pkgs/development/tools/misc/gob2/default.nix
blob: b1e107368ba7799339fdca093c4cf6802a6d6075 (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
25
26
27
28
29
{ stdenv, fetchurl, pkgconfig, glib, bison, flex, gnome3 }:

stdenv.mkDerivation rec {
  pname = "gob2";
  version = "2.0.20";

  src = fetchurl {
    url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
    sha256 = "5fe5d7990fd65b0d4b617ba894408ebaa6df453f2781c15a1cfdf2956c0c5428";
  };

  # configure script looks for d-bus but it is only needed for tests
  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ glib bison flex ];

  passthru = {
    updateScript = gnome3.updateScript {
      packageName = pname;
      versionPolicy = "none";
    };
  };

  meta = {
    description = "Preprocessor for making GObjects with inline C code";
    homepage = "https://www.jirka.org/gob.html";
    license = stdenv.lib.licenses.gpl2Plus;
    platforms = stdenv.lib.platforms.unix;
  };
}