acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / st / stabber / package.nix
blob5ca07007d14ae4a42577094ca762cdff34aa68c0
1 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, glib, expat
2 , libmicrohttpd, darwin
3 }:
4 stdenv.mkDerivation {
5   pname = "stabber-unstable";
6   version = "2020-06-08";
8   src = fetchFromGitHub {
9     owner = "boothj5";
10     repo = "stabber";
11     rev = "3e5c2200715666aad403d0076e8ab584b329965e";
12     sha256 = "0042nbgagl4gcxa5fj7bikjdi1gbk0jwyqnzc5lswpb0l5y0i1ql";
13   };
15   postPatch = ''
16     # New toolchainsd like gcc-13 trigger warnings and fail the build.
17     substituteInPlace configure.ac --replace "-Werror" ""
18   '';
20   preAutoreconf = ''
21     mkdir m4
22   '';
24   nativeBuildInputs = [ pkg-config autoreconfHook ];
25   buildInputs = [ glib expat libmicrohttpd ] ++
26     lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
28   meta = with lib; {
29     description = "Stubbed XMPP Server";
30     mainProgram = "stabber";
31     homepage = "https://github.com/profanity-im/stabber";
32     license = licenses.gpl3;
33     platforms = platforms.unix;
34     maintainers = with maintainers; [ hschaeidt ];
35   };