nixpkgs/pkgs/misc/stabber/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
991 B
Nix
Raw Normal View History

2021-01-17 02:30:45 +00:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, glib, expat
2023-03-21 03:50:28 +00:00
, libmicrohttpd, darwin
2018-03-13 14:49:34 +00:00
}:
2021-01-15 13:21:58 +00:00
with lib;
2018-03-13 14:49:34 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "stabber-unstable";
version = "2020-06-08";
2018-03-13 14:49:34 +00:00
src = fetchFromGitHub {
owner = "boothj5";
repo = "stabber";
rev = "3e5c2200715666aad403d0076e8ab584b329965e";
sha256 = "0042nbgagl4gcxa5fj7bikjdi1gbk0jwyqnzc5lswpb0l5y0i1ql";
2018-03-13 14:49:34 +00:00
};
postPatch = ''
# New toolchainsd like gcc-13 trigger warnings and fail the build.
substituteInPlace configure.ac --replace "-Werror" ""
'';
2018-03-13 14:49:34 +00:00
preAutoreconf = ''
mkdir m4
'';
nativeBuildInputs = [ pkg-config autoreconfHook ];
2023-03-21 03:50:28 +00:00
buildInputs = [ glib expat libmicrohttpd ] ++
lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
2018-03-13 14:49:34 +00:00
meta = {
description = "Stubbed XMPP Server";
homepage = "https://github.com/profanity-im/stabber";
2018-03-13 14:49:34 +00:00
license = licenses.gpl3;
platforms = platforms.unix;
maintainers = with maintainers; [ hschaeidt ];
};
}