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
|
|
@ -0,0 +1,9 @@
|
|||
--- javalib-2.3-orig/Makefile.config.example 2013-10-30 08:35:30.000000000 +0100
|
||||
+++ javalib-2.3/Makefile.config.example 2014-07-06 17:32:29.799398394 +0200
|
||||
@@ -1,6 +1,3 @@
|
||||
-export OCAMLFIND_DESTDIR=$(LOCALDEST)
|
||||
-export OCAMLPATH=$(LOCALDEST)
|
||||
-
|
||||
OCAMLC = $(FINDER) ocamlc $(FLAGS)
|
||||
OCAMLOPT = $(FINDER) ocamlopt $(OPT_FLAGS)
|
||||
OCAMLDOC = $(FINDER) ocamldoc
|
||||
11
pkgs/development/ocaml-modules/javalib/configure.sh.patch
Normal file
11
pkgs/development/ocaml-modules/javalib/configure.sh.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- javalib-2.3-orig/configure.sh 2013-10-30 08:35:30.000000000 +0100
|
||||
+++ javalib-2.3/configure.sh 2014-07-06 17:28:39.025066199 +0200
|
||||
@@ -44,7 +44,7 @@
|
||||
DESTDIR=
|
||||
# The ocamlpath variable for the compiler to locate the locally-installed
|
||||
# packages (depends on LOCALDEST)
|
||||
-OCAMLPATH=
|
||||
+#OCAMLPATH=
|
||||
# The packages that need to be made in addition to Savalib / Sawja
|
||||
MAKEDEP=
|
||||
# The packages that need to be made in addition to Savalib / Sawja
|
||||
50
pkgs/development/ocaml-modules/javalib/default.nix
Normal file
50
pkgs/development/ocaml-modules/javalib/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, which
|
||||
, ocaml
|
||||
, findlib
|
||||
, camlzip
|
||||
, extlib
|
||||
}:
|
||||
|
||||
if lib.versionOlder ocaml.version "4.04"
|
||||
then throw "javalib is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml${ocaml.version}-javalib";
|
||||
version = "3.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "javalib-team";
|
||||
repo = "javalib";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-du1h+S+A7CetMXofsYxdGeSsobCgspDB9oUE9WNUbbo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ which ocaml findlib ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
patches = [ ./configure.sh.patch ./Makefile.config.example.patch ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
preConfigure = "patchShebangs ./configure.sh";
|
||||
|
||||
configureScript = "./configure.sh";
|
||||
dontAddPrefix = "true";
|
||||
dontAddStaticConfigureFlags = true;
|
||||
configurePlatforms = [ ];
|
||||
|
||||
propagatedBuildInputs = [ camlzip extlib ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A library that parses Java .class files into OCaml data structures";
|
||||
homepage = "https://javalib-team.github.io/javalib/";
|
||||
license = licenses.lgpl3;
|
||||
maintainers = [ maintainers.vbgl ];
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue