uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,103 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoconf-archive
|
||||
, autoreconfHook
|
||||
, cmocka
|
||||
, curl
|
||||
, expat
|
||||
, expect
|
||||
, glib
|
||||
, glibcLocales
|
||||
, libstrophe
|
||||
, libmicrohttpd
|
||||
, libotr
|
||||
, libuuid
|
||||
, ncurses
|
||||
, openssl
|
||||
, pkg-config
|
||||
, readline
|
||||
, sqlite
|
||||
, autoAwaySupport ? true, libXScrnSaver, libX11
|
||||
, notifySupport ? true, libnotify, gdk-pixbuf
|
||||
, omemoSupport ? true, libsignal-protocol-c, libgcrypt
|
||||
, pgpSupport ? true, gpgme
|
||||
, pythonPluginSupport ? true, python3
|
||||
, traySupport ? true, gtk3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "profanity";
|
||||
version = "0.12.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "profanity-im";
|
||||
repo = "profanity";
|
||||
rev = version;
|
||||
hash = "sha256-yUiiww8yhymdqR6CITRnItxZhfpZiEbu1WyD8bDW+vc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./patches/packages-osx.patch
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoconf-archive
|
||||
autoreconfHook
|
||||
glibcLocales
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
cmocka
|
||||
curl
|
||||
expat
|
||||
expect
|
||||
glib
|
||||
libstrophe
|
||||
libmicrohttpd
|
||||
libotr
|
||||
libuuid
|
||||
ncurses
|
||||
openssl
|
||||
readline
|
||||
sqlite
|
||||
] ++ lib.optionals autoAwaySupport [ libXScrnSaver libX11 ]
|
||||
++ lib.optionals notifySupport [ libnotify gdk-pixbuf ]
|
||||
++ lib.optionals omemoSupport [ libsignal-protocol-c libgcrypt ]
|
||||
++ lib.optionals pgpSupport [ gpgme ]
|
||||
++ lib.optionals pythonPluginSupport [ python3 ]
|
||||
++ lib.optionals traySupport [ gtk3 ];
|
||||
|
||||
# Enable feature flags, so that build fail if libs are missing
|
||||
configureFlags = [
|
||||
"--enable-c-plugins"
|
||||
"--enable-otr"
|
||||
] ++ lib.optionals notifySupport [ "--enable-notifications" ]
|
||||
++ lib.optionals traySupport [ "--enable-icons-and-clipboard" ]
|
||||
++ lib.optionals pgpSupport [ "--enable-pgp" ]
|
||||
++ lib.optionals pythonPluginSupport [ "--enable-python-plugins" ]
|
||||
++ lib.optionals omemoSupport [ "--enable-omemo" ];
|
||||
|
||||
preAutoreconf = ''
|
||||
mkdir m4
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
LC_ALL = "en_US.utf8";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.profanity.im/";
|
||||
description = "A console based XMPP client";
|
||||
longDescription = ''
|
||||
Profanity is a console based XMPP client written in C using ncurses and
|
||||
libstrophe, inspired by Irssi.
|
||||
'';
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = [ maintainers.devhell ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/configure.ac b/configure.ac
|
||||
index 5c00aca..eb78060 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -23,7 +23,6 @@ PLATFORM="unknown"
|
||||
AS_CASE([$host_os],
|
||||
[freebsd*], [PLATFORM="freebsd"],
|
||||
[openbsd*], [PLATFORM="openbsd"],
|
||||
- [darwin*], [PLATFORM="osx"],
|
||||
[cygwin], [PLATFORM="cygwin"],
|
||||
[PLATFORM="nix"])
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue