diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/gom')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/gom/default.nix | 63 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/gom/longer-stress-timeout.patch | 13 |
2 files changed, 76 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/gom/default.nix b/nixpkgs/pkgs/development/libraries/gom/default.nix new file mode 100644 index 000000000000..4b5effefa57c --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/gom/default.nix @@ -0,0 +1,63 @@ +{ lib, stdenv +, fetchurl +, meson +, ninja +, pkg-config +, glib +, python3 +, sqlite +, gdk-pixbuf +, gnome3 +, gobject-introspection +}: + +stdenv.mkDerivation rec { + pname = "gom"; + version = "0.4"; + + outputs = [ "out" "py" ]; + + src = fetchurl { + url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "17ca07hpg7dqxjn0jpqim3xqcmplk2a87wbwrrlq3dd3m8381l38"; + }; + + patches = [ + ./longer-stress-timeout.patch + ]; + + nativeBuildInputs = [ + gobject-introspection + meson + ninja + pkg-config + ]; + + buildInputs = [ + gdk-pixbuf + glib + sqlite + python3.pkgs.pygobject3 + ]; + + mesonFlags = [ + "-Dpygobject-override-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides" + ]; + + # Success is more likely on x86_64 + doCheck = stdenv.isx86_64; + + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + }; + }; + + meta = with lib; { + description = "A GObject to SQLite object mapper"; + homepage = "https://wiki.gnome.org/Projects/Gom"; + license = licenses.lgpl21Plus; + platforms = platforms.linux; + maintainers = teams.gnome.members; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/gom/longer-stress-timeout.patch b/nixpkgs/pkgs/development/libraries/gom/longer-stress-timeout.patch new file mode 100644 index 000000000000..3dcd1d0a107f --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/gom/longer-stress-timeout.patch @@ -0,0 +1,13 @@ +diff --git a/tests/meson.build b/tests/meson.build +index 1df4884..d7a6f5d 100644 +--- a/tests/meson.build ++++ b/tests/meson.build +@@ -25,7 +25,7 @@ test('test-gom-find', test_find) + + test_stress = executable('test-gom-stress', 'test-gom-stress.c', + dependencies: [libgom_dep]) +-test('test-gom-stress', test_stress, timeout: 300) ++test('test-gom-stress', test_stress, timeout: 500) + + test_transform = executable('test-gom-transform', 'test-gom-transform.c', + c_args: '-DIMAGE="@0@/gnome.png"'.format(meson.current_source_dir()), |