1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 pkg-config,
7 pcre,
8 zlib,
9 sqlite,
10}:
11
12stdenv.mkDerivation {
13 pname = "falcon";
14 version = "unstable-2018-10-23";
15
16 src = fetchFromGitHub {
17 owner = "falconpl";
18 repo = "falcon";
19 rev = "637e2d5cd950a874496042993c02ab7d17c1b688";
20 sha256 = "iCyvvZJjXb1CR396EJ6GiP6d4e7iAc6QQlAOQoAfehg=";
21 };
22
23 # -Wnarrowing is enabled by default in recent GCC versions,
24 # causing compilation to fail.
25 env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
26
27 nativeBuildInputs = [
28 cmake
29 pkg-config
30 ];
31 buildInputs = [
32 pcre
33 zlib
34 sqlite
35 ];
36
37 meta = with lib; {
38 description = "Programming language with macros and syntax at once";
39 license = licenses.gpl2Only;
40 maintainers = with maintainers; [ pSub ];
41 platforms = with platforms; unix;
42 };
43}