1{ lib, stdenv, fetchurl, pkg-config, glib, bison, flex, gnome }:
2
3stdenv.mkDerivation rec {
4 pname = "gob2";
5 version = "2.0.20";
6
7 src = fetchurl {
8 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
9 sha256 = "5fe5d7990fd65b0d4b617ba894408ebaa6df453f2781c15a1cfdf2956c0c5428";
10 };
11
12 # configure script looks for d-bus but it is only needed for tests
13 nativeBuildInputs = [ pkg-config ];
14 buildInputs = [ glib bison flex ];
15
16 passthru = {
17 updateScript = gnome.updateScript {
18 packageName = pname;
19 versionPolicy = "none";
20 };
21 };
22
23 meta = {
24 description = "Preprocessor for making GObjects with inline C code";
25 mainProgram = "gob2";
26 homepage = "https://www.jirka.org/gob.html";
27 license = lib.licenses.gpl2Plus;
28 platforms = lib.platforms.unix;
29 };
30}