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
34
pkgs/development/ocaml-modules/sodium/default.nix
Normal file
34
pkgs/development/ocaml-modules/sodium/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, ctypes, libsodium }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml${ocaml.version}-sodium";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dsheets";
|
||||
repo = "ocaml-sodium";
|
||||
rev = version;
|
||||
sha256 = "124gpi1jhac46x05gp5viykyrafnlp03v1cmkl13c6pgcs8w04pv";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# ctypes.stubs no longer pulls in bigarray automatically
|
||||
./lib-gen-link-bigarray.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
||||
propagatedBuildInputs = [ ctypes libsodium ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
hardeningDisable = lib.optional stdenv.isDarwin "strictoverflow";
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/dsheets/ocaml-sodium";
|
||||
description = "Binding to libsodium 1.0.9+";
|
||||
inherit (ocaml.meta) platforms;
|
||||
maintainers = [ maintainers.rixed ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
diff --git a/lib_gen/_tags b/lib_gen/_tags
|
||||
index 7a7e632..7a4e0b7 100644
|
||||
--- a/lib_gen/_tags
|
||||
+++ b/lib_gen/_tags
|
||||
@@ -1 +1 @@
|
||||
-<*.{ml,byte,native}>: package(ctypes.stubs)
|
||||
+<*.{ml,byte,native}>: package(ctypes.stubs), package(bigarray)
|
||||
Loading…
Add table
Add a link
Reference in a new issue