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
47
pkgs/tools/system/monit/default.nix
Normal file
47
pkgs/tools/system/monit/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, bison
|
||||
, flex
|
||||
, zlib
|
||||
, usePAM ? stdenv.hostPlatform.isLinux
|
||||
, pam
|
||||
, useSSL ? true
|
||||
, openssl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "monit";
|
||||
version = "5.32.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://mmonit.com/monit/dist/monit-${version}.tar.gz";
|
||||
sha256 = "sha256-EHcFLUxOhIrEfRT5s3dU1GQZrsvoyaB+H4ackU+vMhY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ bison flex ];
|
||||
buildInputs = [ zlib.dev ] ++
|
||||
lib.optionals useSSL [ openssl ] ++
|
||||
lib.optionals usePAM [ pam ];
|
||||
|
||||
configureFlags = [
|
||||
(lib.withFeature usePAM "pam")
|
||||
] ++ (if useSSL then [
|
||||
"--with-ssl-incl-dir=${openssl.dev}/include"
|
||||
"--with-ssl-lib-dir=${lib.getLib openssl}/lib"
|
||||
] else [
|
||||
"--without-ssl"
|
||||
]) ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||
# will need to check both these are true for musl
|
||||
"libmonit_cv_setjmp_available=yes"
|
||||
"libmonit_cv_vsnprintf_c99_conformant=yes"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://mmonit.com/monit/";
|
||||
description = "Monitoring system";
|
||||
license = lib.licenses.agpl3;
|
||||
maintainers = with lib.maintainers; [ raskin wmertens ryantm ];
|
||||
platforms = with lib.platforms; linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue