forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
44 lines
1 KiB
Nix
44 lines
1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, openssl, curl, postgresql, yajl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kore";
|
|
version = "4.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jorisvink";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0186lih30zps2d4600ikafbgsml269jzpcszdggzzkdw8p628qw9";
|
|
};
|
|
|
|
buildInputs = [ openssl curl postgresql yajl ];
|
|
|
|
makeFlags = [
|
|
"PREFIX=${placeholder "out"}"
|
|
"ACME=1"
|
|
"CURL=1"
|
|
"TASKS=1"
|
|
"PGSQL=1"
|
|
"JSONRPC=1"
|
|
"DEBUG=1"
|
|
];
|
|
|
|
preBuild = ''
|
|
make platform.h
|
|
'';
|
|
|
|
# added to fix build w/gcc7 and clang5
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isGNU "-Wno-error=pointer-compare"
|
|
+ stdenv.lib.optionalString stdenv.cc.isClang " -Wno-error=unknown-warning-option";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "An easy to use web application framework for C";
|
|
homepage = "https://kore.io";
|
|
license = licenses.isc;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ johnmh ];
|
|
};
|
|
}
|