nixpkgs/pkgs/development/interpreters/falcon/default.nix
Artturin f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00

27 lines
786 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, pcre, zlib, sqlite }:
stdenv.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.
env.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;
};
}