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
29
pkgs/development/ocaml-modules/lwt/camlp4.nix
Normal file
29
pkgs/development/ocaml-modules/lwt/camlp4.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, fetchFromGitHub, buildDunePackage, camlp4 }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "lwt_camlp4";
|
||||
version = "unstable-2018-03-25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ocsigen";
|
||||
repo = pname;
|
||||
rev = "45f25a081e01071ab566924b48ba5f7553bb33ac";
|
||||
sha256 = "1lv8z6ljfy47yvxmwf5jrvc5d3dc90r1n291x53j161sf22ddrk9";
|
||||
};
|
||||
|
||||
useDune2 = false;
|
||||
|
||||
minimalOCamlVersion = "4.02";
|
||||
|
||||
propagatedBuildInputs = [ camlp4 ];
|
||||
|
||||
preBuild = "rm META.lwt_camlp4";
|
||||
|
||||
meta = {
|
||||
description = "Camlp4 syntax extension for Lwt (deprecated)";
|
||||
license = lib.licenses.lgpl21;
|
||||
inherit (src.meta) homepage;
|
||||
maintainers = [ lib.maintainers.vbgl ];
|
||||
};
|
||||
}
|
||||
|
||||
34
pkgs/development/ocaml-modules/lwt/default.nix
Normal file
34
pkgs/development/ocaml-modules/lwt/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, fetchFromGitHub, pkg-config, ncurses, libev, buildDunePackage, ocaml
|
||||
, cppo, dune-configurator, ocplib-endian, result
|
||||
, mmap, seq
|
||||
, ocaml-syntax-shims
|
||||
}:
|
||||
|
||||
let inherit (lib) optional versionOlder; in
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "lwt";
|
||||
version = "5.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ocsigen";
|
||||
repo = "lwt";
|
||||
rev = version;
|
||||
sha256 = "sha256:1jbjz2rsz3j56k8vh5qlmm87hhkr250bs2m3dvpy9vsri8rkzj9z";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ pkg-config cppo ]
|
||||
++ optional (versionOlder ocaml.version "4.08") ocaml-syntax-shims;
|
||||
buildInputs = [ dune-configurator ]
|
||||
++ optional (versionOlder ocaml.version "4.07") ncurses;
|
||||
propagatedBuildInputs = [ libev mmap ocplib-endian seq result ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://ocsigen.org/lwt/";
|
||||
description = "A cooperative threads library for OCaml";
|
||||
maintainers = [ lib.maintainers.vbgl ];
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
31
pkgs/development/ocaml-modules/lwt/ppx.nix
Normal file
31
pkgs/development/ocaml-modules/lwt/ppx.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ fetchFromGitHub, buildDunePackage, lwt, ppxlib }:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "lwt_ppx";
|
||||
version = "2.0.2";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
minimumOCamlVersion = "4.04";
|
||||
|
||||
# `lwt_ppx` has a different release cycle than Lwt, but it's included in
|
||||
# one of its release bundles.
|
||||
# Because there could exist an Lwt release _without_ a `lwt_ppx` release,
|
||||
# this `src` field doesn't inherit from the Lwt derivation.
|
||||
#
|
||||
# This is particularly useful for overriding Lwt without breaking `lwt_ppx`,
|
||||
# as new Lwt releases may contain broken `lwt_ppx` code.
|
||||
src = fetchFromGitHub {
|
||||
owner = "ocsigen";
|
||||
repo = "lwt";
|
||||
rev = "5.4.0";
|
||||
sha256 = "sha256-rRivROVbQbXkHWen1n8+9AwrRJaOK0Fhyilw29T7was=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ lwt ppxlib ];
|
||||
|
||||
meta = {
|
||||
description = "Ppx syntax extension for Lwt";
|
||||
inherit (lwt.meta) license homepage maintainers;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue