about summary refs log tree commit diff
path: root/pkgs/by-name/uh
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2024-02-25 22:32:16 +0800
committerMaxine Aubrey <max@ine.dev>2024-04-22 21:10:54 +0200
commitd548f7858ba9f656d74496738e0b593d3672ed8e (patch)
tree6e1a45905c2a1703bc44b1f9e923e1e31d933610 /pkgs/by-name/uh
parent4502fe49111634af9c895cc68163b6eec14c2f3f (diff)
uhttpmock_1_0: init at 0.10.0
libgdata is not ported to libsoup 3 yet, unfortunately.
Diffstat (limited to 'pkgs/by-name/uh')
-rw-r--r--pkgs/by-name/uh/uhttpmock_1_0/package.nix56
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/by-name/uh/uhttpmock_1_0/package.nix b/pkgs/by-name/uh/uhttpmock_1_0/package.nix
new file mode 100644
index 0000000000000..1cc16f96eb5ee
--- /dev/null
+++ b/pkgs/by-name/uh/uhttpmock_1_0/package.nix
@@ -0,0 +1,56 @@
+{ stdenv
+, lib
+, fetchFromGitLab
+, meson
+, mesonEmulatorHook
+, ninja
+, pkg-config
+, gobject-introspection
+, vala
+, gtk-doc
+, docbook-xsl-nons
+, glib
+, libsoup_3
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "uhttpmock";
+  version = "0.10.0";
+
+  outputs = [ "out" "dev" "devdoc" ];
+
+  src = fetchFromGitLab {
+    domain = "gitlab.freedesktop.org";
+    owner = "pwithnall";
+    repo = "uhttpmock";
+    rev = finalAttrs.version;
+    hash = "sha256-d3IVlPOLOLzlUDuGOLll8pOK5FMsXI/d2wbwPZ6WI34=";
+  };
+
+  strictDeps = true;
+
+  nativeBuildInputs = [
+    meson
+    ninja
+    pkg-config
+    gobject-introspection
+    vala
+    gtk-doc
+    docbook-xsl-nons
+  ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
+    mesonEmulatorHook
+  ];
+
+  propagatedBuildInputs = [
+    glib
+    libsoup_3
+  ];
+
+  meta = with lib; {
+    description = "Project for mocking web service APIs which use HTTP or HTTPS";
+    homepage = "https://gitlab.freedesktop.org/pwithnall/uhttpmock/";
+    license = licenses.lgpl21Plus;
+    maintainers = teams.gnome.members;
+    platforms = platforms.linux;
+  };
+})