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
41
pkgs/development/tools/ocaml/ocamlbuild/default.nix
Normal file
41
pkgs/development/tools/ocaml/ocamlbuild/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib, stdenv, fetchFromGitHub, ocaml, findlib }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml${ocaml.version}-ocamlbuild";
|
||||
version = "0.14.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ocaml";
|
||||
repo = "ocamlbuild";
|
||||
rev = version;
|
||||
sha256 = "sha256-ZL0BwOCWTNDjNkrwNAmzHjHF1Rpg3CUuV4lSqcwDqgI=";
|
||||
};
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
nativeBuildInputs = [ ocaml findlib ];
|
||||
strictDeps = true;
|
||||
|
||||
# x86_64-unknown-linux-musl-ld: -r and -pie may not be used together
|
||||
hardeningDisable = lib.optional stdenv.hostPlatform.isStatic "pie";
|
||||
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
|
||||
make -f configure.make Makefile.config \
|
||||
"OCAMLBUILD_PREFIX=$out" \
|
||||
"OCAMLBUILD_BINDIR=$out/bin" \
|
||||
"OCAMLBUILD_MANDIR=$out/share/man" \
|
||||
"OCAMLBUILD_LIBDIR=$OCAMLFIND_DESTDIR"
|
||||
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A build system with builtin rules to easily build most OCaml projects";
|
||||
homepage = "https://github.com/ocaml/ocamlbuild/";
|
||||
license = licenses.lgpl2;
|
||||
maintainers = with maintainers; [ vbgl ];
|
||||
mainProgram = "ocamlbuild";
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue