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
35
pkgs/development/ocaml-modules/z3/default.nix
Normal file
35
pkgs/development/ocaml-modules/z3/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ stdenv, lib, ocaml, findlib, zarith, z3 }:
|
||||
|
||||
if lib.versionOlder ocaml.version "4.07"
|
||||
then throw "z3 is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
let z3-with-ocaml = (z3.override {
|
||||
ocamlBindings = true;
|
||||
inherit ocaml findlib zarith;
|
||||
}); in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
pname = "ocaml${ocaml.version}-z3";
|
||||
inherit (z3-with-ocaml) version;
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $OCAMLFIND_DESTDIR
|
||||
cp -r ${z3-with-ocaml.ocaml}/lib/ocaml/${ocaml.version}/site-lib/stublibs $OCAMLFIND_DESTDIR
|
||||
cp -r ${z3-with-ocaml.ocaml}/lib/ocaml/${ocaml.version}/site-lib/Z3 $OCAMLFIND_DESTDIR/z3
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ findlib ];
|
||||
propagatedBuildInputs = [ zarith ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
meta = z3.meta // {
|
||||
description = "Z3 Theorem Prover (OCaml API)";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue