Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 pkg-config, 7 glib, 8 expat, 9 libmicrohttpd, 10}: 11stdenv.mkDerivation { 12 pname = "stabber-unstable"; 13 version = "2020-06-08"; 14 15 src = fetchFromGitHub { 16 owner = "boothj5"; 17 repo = "stabber"; 18 rev = "3e5c2200715666aad403d0076e8ab584b329965e"; 19 sha256 = "0042nbgagl4gcxa5fj7bikjdi1gbk0jwyqnzc5lswpb0l5y0i1ql"; 20 }; 21 22 postPatch = '' 23 # New toolchainsd like gcc-13 trigger warnings and fail the build. 24 substituteInPlace configure.ac --replace "-Werror" "" 25 ''; 26 27 preAutoreconf = '' 28 mkdir m4 29 ''; 30 31 nativeBuildInputs = [ 32 pkg-config 33 autoreconfHook 34 ]; 35 buildInputs = [ 36 glib 37 expat 38 libmicrohttpd 39 ]; 40 41 meta = with lib; { 42 description = "Stubbed XMPP Server"; 43 mainProgram = "stabber"; 44 homepage = "https://github.com/profanity-im/stabber"; 45 license = licenses.gpl3; 46 platforms = platforms.unix; 47 maintainers = with maintainers; [ hschaeidt ]; 48 }; 49}