8 # component dependencies
20 # omit python (2.7), no need to introduce a
21 # dependency on an EOL package for no reason
26 readline = [ readline ];
27 python3 = [ python3 ncurses ];
34 stdenv.mkDerivation rec {
35 pname = "gnatcoll-${component}";
38 src = fetchFromGitHub {
40 repo = "gnatcoll-bindings";
42 sha256 = "0wbwnd6jccwfd4jdxbnzhc0jhm8ad4phz6y9b1gk8adykkk6jcz4";
46 ./omp-setup-text-mode.patch
55 # propagate since gprbuild needs to find referenced .gpr files
56 # and all dependency C libraries when statically linking a
57 # downstream executable.
58 propagatedBuildInputs = [
60 ] ++ libsFor."${component}" or [];
62 # explicit flag for GPL acceptance because upstreams
63 # allows a gcc runtime exception for all bindings
64 # except for readline (since it is GPL w/o exceptions)
65 buildFlags = lib.optionals (component == "readline") [
71 ${python3.interpreter} ${component}/setup.py build --prefix $out $buildFlags
77 ${python3.interpreter} ${component}/setup.py install --prefix $out
82 description = "GNAT Components Collection - Bindings to C libraries";
83 homepage = "https://github.com/AdaCore/gnatcoll-bindings";
84 license = licenses.gpl3Plus;
85 platforms = platforms.all;
86 maintainers = [ maintainers.sternenseemann ];