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
24
pkgs/development/ocaml-modules/bitstring/default.nix
Normal file
24
pkgs/development/ocaml-modules/bitstring/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ lib, fetchFromGitHub, buildDunePackage, stdlib-shims }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "bitstring";
|
||||
version = "4.1.0";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xguerin";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0mghsl8b2zd2676mh1r9142hymhvzy9cw8kgkjmirxkn56wbf56b";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ stdlib-shims ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "This library adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml";
|
||||
homepage = "https://github.com/xguerin/bitstring";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = [ maintainers.maurer ];
|
||||
};
|
||||
}
|
||||
22
pkgs/development/ocaml-modules/bitstring/ppx.nix
Normal file
22
pkgs/development/ocaml-modules/bitstring/ppx.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ lib, buildDunePackage, ocaml
|
||||
, bitstring, ppxlib
|
||||
, ounit
|
||||
}:
|
||||
|
||||
if lib.versionOlder ppxlib.version "0.18.0"
|
||||
then throw "ppx_bitstring is not available with ppxlib-${ppxlib.version}"
|
||||
else
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "ppx_bitstring";
|
||||
inherit (bitstring) version useDune2 src;
|
||||
|
||||
buildInputs = [ bitstring ppxlib ];
|
||||
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
||||
checkInputs = [ ounit ];
|
||||
|
||||
meta = bitstring.meta // {
|
||||
description = "Bitstrings and bitstring matching for OCaml - PPX extension";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue