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
7
pkgs/development/ocaml-modules/mlgmp/META
Normal file
7
pkgs/development/ocaml-modules/mlgmp/META
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
name="gmp"
|
||||
version="@VERSION@"
|
||||
description="bindings to GNU MP library"
|
||||
archive(byte)="gmp.cma"
|
||||
archive(native)="gmp.cmxa"
|
||||
requires=""
|
||||
|
||||
42
pkgs/development/ocaml-modules/mlgmp/default.nix
Normal file
42
pkgs/development/ocaml-modules/mlgmp/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{stdenv, lib, fetchurl, ocaml, findlib, gmp, mpfr, ncurses }:
|
||||
|
||||
if lib.versionAtLeast ocaml.version "4.03"
|
||||
then throw "mlgmp is not available for OCaml ${ocaml.version}" else
|
||||
|
||||
let
|
||||
pname = "mlgmp";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
version = "20120224";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www-verimag.imag.fr/~monniaux/download/${pname}_${version}.tar.gz";
|
||||
sha256 = "3ce1a53fa452ff5a9ba618864d3bc46ef32190b57202d1e996ca7df837ad4f24";
|
||||
};
|
||||
|
||||
makeFlags = [
|
||||
"DESTDIR=$(out)/lib/ocaml/${ocaml.version}/site-lib/gmp"
|
||||
];
|
||||
|
||||
preConfigure = "make clean";
|
||||
nativeBuildInputs = [ocaml findlib ];
|
||||
buildInputs = [ gmp mpfr ncurses];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
propagatedbuildInputs = [gmp mpfr ncurses];
|
||||
|
||||
postInstall = ''
|
||||
cp ${./META} $out/lib/ocaml/${ocaml.version}/site-lib/gmp/META
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://opam.ocamlpro.com/pkg/mlgmp.20120224.html";
|
||||
description = "OCaml bindings to GNU MP library";
|
||||
license = "Free software ?";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue