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
49
pkgs/development/ocaml-modules/sawja/default.nix
Normal file
49
pkgs/development/ocaml-modules/sawja/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib, stdenv, fetchFromGitHub, which, ocaml, findlib, javalib }:
|
||||
|
||||
let
|
||||
pname = "sawja";
|
||||
version = "1.5.11";
|
||||
in
|
||||
|
||||
if lib.versionOlder ocaml.version "4.07"
|
||||
then throw "${pname} is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
pname = "ocaml${ocaml.version}-${pname}";
|
||||
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "javalib-team";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-1aKkRZDuLJLmDhUC1FXnn4QrgXaTyAbnXfTOAdnKgs8=";
|
||||
};
|
||||
|
||||
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 = [ javalib ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A library written in OCaml, relying on Javalib to provide a high level representation of Java bytecode programs";
|
||||
homepage = "http://sawja.inria.fr/";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = [ maintainers.vbgl ];
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue