nixpkgs/pkgs/misc/stabber/default.nix

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

40 lines
1,020 B
Nix
Raw Normal View History

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