2021-02-05 17:12:51 +00:00
{ stdenv , lib , fetchFromGitLab , autoconf , gtk-doc , automake , libtool , pkg-config , glib , libsoup , gobject-introspection }:
2020-04-24 23:36:52 +00:00
stdenv . mkDerivation rec {
version = " 0 . 5 . 0 " ;
pname = " u h t t p m o c k " ;
src = fetchFromGitLab {
repo = " u h t t p m o c k " ;
owner = " u h t t p m o c k " ;
rev = version ;
sha256 = " 0 k k f 6 7 0 a b k q 5 i k m 3 m q l s 4 7 5 l y d f s d 9 b y 1 k v 5 i m 4 k 7 5 7 x r l 1 b r 1 d 4 " ;
} ;
2021-12-19 01:06:50 +00:00
nativeBuildInputs = [ pkg-config autoconf automake gtk-doc libtool gobject-introspection ] ;
buildInputs = [ glib libsoup ] ;
2020-04-24 23:36:52 +00:00
2021-12-19 01:06:50 +00:00
preConfigure = " N O C O N F I G U R E = 1 . / a u t o g e n . s h " ;
2020-04-24 23:36:52 +00:00
2022-09-30 11:47:45 +00:00
# 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 " o u t " } /lib
ln - s $ PWD/libuhttpmock/.libs/libuhttpmock-0.0.so.0 $ { placeholder " o u t " } /lib/libuhttpmock-0.0.so.0
'' ;
2020-04-24 23:36:52 +00:00
meta = with lib ; {
description = " P r o j e c t f o r m o c k i n g w e b s e r v i c e A P I s w h i c h u s e H T T P o r H T T P S " ;
homepage = " h t t p s : / / g i t l a b . c o m / g r o u p s / u h t t p m o c k / " ;
license = licenses . lgpl21 ;
maintainers = with maintainers ; [ ] ;
platforms = with platforms ; linux ;
} ;
}