summary refs log tree commit diff
path: root/pkgs/development/interpreters/falcon/default.nix
blob: 0d2aa0b64203fd2365daef5d11fd53c0ec52e949 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, gccStdenv, fetchFromGitHub, cmake, pkg-config, pcre, zlib, sqlite }:

gccStdenv.mkDerivation {
  pname = "falcon";
  version = "unstable-2018-10-23";

  src = fetchFromGitHub {
    owner = "falconpl";
    repo = "falcon";
    rev = "637e2d5cd950a874496042993c02ab7d17c1b688";
    sha256 = "iCyvvZJjXb1CR396EJ6GiP6d4e7iAc6QQlAOQoAfehg=";
  };

  # -Wnarrowing is enabled by default in recent GCC versions,
  # causing compilation to fail.
  NIX_CFLAGS_COMPILE = "-Wno-narrowing";

  nativeBuildInputs = [ cmake pkg-config ];
  buildInputs = [ pcre zlib sqlite ];

  meta = with lib; {
    description = "Programming language with macros and syntax at once";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ pSub ];
    platforms = with platforms; unix;
  };
}