summary refs log tree commit diff
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-10-15 22:25:33 +0800
committerBobby Rong <rjl931189261@126.com>2022-10-15 23:48:52 +0800
commitf6d8a99ff9cc577a8f6652590f724382406529b7 (patch)
tree74dc93a43300c9a44f1336ac1d53791a95ddbcd3
parent31d567846255e122846548255101980162bbf641 (diff)
downloadnixpkgs-f6d8a99ff9cc577a8f6652590f724382406529b7.tar
nixpkgs-f6d8a99ff9cc577a8f6652590f724382406529b7.tar.gz
nixpkgs-f6d8a99ff9cc577a8f6652590f724382406529b7.tar.bz2
nixpkgs-f6d8a99ff9cc577a8f6652590f724382406529b7.tar.lz
nixpkgs-f6d8a99ff9cc577a8f6652590f724382406529b7.tar.xz
nixpkgs-f6d8a99ff9cc577a8f6652590f724382406529b7.tar.zst
nixpkgs-f6d8a99ff9cc577a8f6652590f724382406529b7.zip
uhttpmock: 0.5.0 → 0.5.5
https://gitlab.freedesktop.org/pwithnall/uhttpmock/-/compare/0.5.0...0.5.5
-rw-r--r--pkgs/development/libraries/uhttpmock/default.nix52
1 files changed, 35 insertions, 17 deletions
diff --git a/pkgs/development/libraries/uhttpmock/default.nix b/pkgs/development/libraries/uhttpmock/default.nix
index a5bd2fd3616..f2f0fabb063 100644
--- a/pkgs/development/libraries/uhttpmock/default.nix
+++ b/pkgs/development/libraries/uhttpmock/default.nix
@@ -1,33 +1,51 @@
-{ stdenv, lib, fetchFromGitLab, autoconf, gtk-doc, automake, libtool, pkg-config, glib, libsoup, gobject-introspection }:
+{ stdenv
+, lib
+, fetchFromGitLab
+, meson
+, ninja
+, pkg-config
+, gobject-introspection
+, vala
+, gtk-doc
+, docbook-xsl-nons
+, glib
+, libsoup
+}:
 
 stdenv.mkDerivation rec {
-  version="0.5.0";
   pname = "uhttpmock";
+  version = "0.5.5";
+
+  outputs = [ "out" "dev" "devdoc" ];
 
   src = fetchFromGitLab {
+    domain = "gitlab.freedesktop.org";
+    owner = "pwithnall";
     repo = "uhttpmock";
-    owner = "uhttpmock";
     rev = version;
-    sha256 = "0kkf670abkq5ikm3mqls475lydfsd9by1kv5im4k757xrl1br1d4";
+    sha256 = "NuxiVVowZ8ilP9rcgapCe9OzFCpoOfZxZiSyjTeOrts=";
   };
 
-  nativeBuildInputs = [ pkg-config autoconf automake gtk-doc libtool gobject-introspection ];
-  buildInputs = [ glib libsoup ];
-
-  preConfigure = "NOCONFIGURE=1 ./autogen.sh";
+  nativeBuildInputs = [
+    meson
+    ninja
+    pkg-config
+    gobject-introspection
+    vala
+    gtk-doc
+    docbook-xsl-nons
+  ];
 
-  # while cross
-  # /build/source/tmp-introspect3xf43lf3/.libs/Uhm-0.0: error while loading shared libraries: libuhttpmock-0.0.so.0: cannot open shared object file: No such file or directory
-  preBuild = ''
-    mkdir -p ${placeholder "out"}/lib
-    ln -s $PWD/libuhttpmock/.libs/libuhttpmock-0.0.so.0 ${placeholder "out"}/lib/libuhttpmock-0.0.so.0
-  '';
+  buildInputs = [
+    glib
+    libsoup
+  ];
 
   meta = with lib; {
     description = "Project for mocking web service APIs which use HTTP or HTTPS";
-    homepage = "https://gitlab.com/groups/uhttpmock/";
-    license = licenses.lgpl21;
+    homepage = "https://gitlab.freedesktop.org/pwithnall/uhttpmock/";
+    license = licenses.lgpl21Plus;
     maintainers = with maintainers; [ ];
-    platforms = with platforms; linux;
+    platforms = platforms.linux;
   };
 }