uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
88
pkgs/development/libraries/ada/gnatcoll/bindings.nix
Normal file
88
pkgs/development/libraries/ada/gnatcoll/bindings.nix
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, gnat
|
||||
, gprbuild
|
||||
, gnatcoll-core
|
||||
, component
|
||||
# component dependencies
|
||||
, gmp
|
||||
, libiconv
|
||||
, xz
|
||||
, gcc-unwrapped
|
||||
, readline
|
||||
, zlib
|
||||
, python3
|
||||
, ncurses
|
||||
}:
|
||||
|
||||
let
|
||||
# omit python (2.7), no need to introduce a
|
||||
# dependency on an EOL package for no reason
|
||||
libsFor = {
|
||||
iconv = [ libiconv ];
|
||||
gmp = [ gmp ];
|
||||
lzma = [ xz ];
|
||||
readline = [ readline ];
|
||||
python3 = [ python3 ncurses ];
|
||||
syslog = [ ];
|
||||
zlib = [ zlib ];
|
||||
};
|
||||
in
|
||||
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gnatcoll-${component}";
|
||||
version = "22.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AdaCore";
|
||||
repo = "gnatcoll-bindings";
|
||||
rev = "v${version}";
|
||||
sha256 = "0wbwnd6jccwfd4jdxbnzhc0jhm8ad4phz6y9b1gk8adykkk6jcz4";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./omp-setup-text-mode.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
gprbuild
|
||||
gnat
|
||||
python3
|
||||
];
|
||||
|
||||
# propagate since gprbuild needs to find referenced .gpr files
|
||||
# and all dependency C libraries when statically linking a
|
||||
# downstream executable.
|
||||
propagatedBuildInputs = [
|
||||
gnatcoll-core
|
||||
] ++ libsFor."${component}" or [];
|
||||
|
||||
# explicit flag for GPL acceptance because upstreams
|
||||
# allows a gcc runtime exception for all bindings
|
||||
# except for readline (since it is GPL w/o exceptions)
|
||||
buildFlags = lib.optionals (component == "readline") [
|
||||
"--accept-gpl"
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
${python3.interpreter} ${component}/setup.py build --prefix $out $buildFlags
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
${python3.interpreter} ${component}/setup.py install --prefix $out
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "GNAT Components Collection - Bindings to C libraries";
|
||||
homepage = "https://github.com/AdaCore/gnatcoll-bindings";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.sternenseemann ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue