From f6d8a99ff9cc577a8f6652590f724382406529b7 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 15 Oct 2022 22:25:33 +0800 Subject: [PATCH] =?UTF-8?q?uhttpmock:=200.5.0=20=E2=86=92=200.5.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.freedesktop.org/pwithnall/uhttpmock/-/compare/0.5.0...0.5.5 --- .../libraries/uhttpmock/default.nix | 52 +++++++++++++------ 1 file changed, 35 insertions(+), 17 deletions(-) diff --git a/pkgs/development/libraries/uhttpmock/default.nix b/pkgs/development/libraries/uhttpmock/default.nix index a5bd2fd36162..f2f0fabb0637 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 ]; + nativeBuildInputs = [ + meson + ninja + pkg-config + gobject-introspection + vala + gtk-doc + docbook-xsl-nons + ]; - preConfigure = "NOCONFIGURE=1 ./autogen.sh"; - - # 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; }; }