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
64
pkgs/development/ocaml-modules/ppx_deriving/default.nix
Normal file
64
pkgs/development/ocaml-modules/ppx_deriving/default.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{ lib
|
||||
, fetchurl
|
||||
, buildDunePackage
|
||||
, cppo
|
||||
, ppxlib
|
||||
, ppx_derivers
|
||||
, result
|
||||
, ounit
|
||||
, ounit2
|
||||
, ocaml-migrate-parsetree
|
||||
, ocaml-migrate-parsetree-2
|
||||
}:
|
||||
|
||||
let params =
|
||||
if lib.versionAtLeast ppxlib.version "0.20" then {
|
||||
version = "5.2.1";
|
||||
sha256 = "11h75dsbv3rs03pl67hdd3lbim7wjzh257ij9c75fcknbfr5ysz9";
|
||||
useOMP2 = true;
|
||||
} else if lib.versionAtLeast ppxlib.version "0.15" then {
|
||||
version = "5.1";
|
||||
sha256 = "1i64fd7qrfzbam5hfbl01r0sx4iihsahcwqj13smmrjlnwi3nkxh";
|
||||
useOMP2 = false;
|
||||
} else {
|
||||
version = "5.0";
|
||||
sha256 = "0fkzrn4pdyvf1kl0nwvhqidq01pnq3ql8zk1jd56hb0cxaw851w3";
|
||||
useOMP2 = false;
|
||||
}
|
||||
; in
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "ppx_deriving";
|
||||
inherit (params) version;
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ocaml-ppx/ppx_deriving/releases/download/v${version}/ppx_deriving-v${version}.tbz";
|
||||
inherit (params) sha256;
|
||||
};
|
||||
|
||||
# This currently fails with dune
|
||||
strictDeps = false;
|
||||
|
||||
nativeBuildInputs = [ cppo ];
|
||||
buildInputs = [ ppxlib ];
|
||||
propagatedBuildInputs = [
|
||||
(if params.useOMP2
|
||||
then ocaml-migrate-parsetree-2
|
||||
else ocaml-migrate-parsetree)
|
||||
ppx_derivers
|
||||
result
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
checkInputs = [
|
||||
(if lib.versionAtLeast version "5.2" then ounit2 else ounit)
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "deriving is a library simplifying type-driven code generation on OCaml >=4.02.";
|
||||
maintainers = [ maintainers.maurer ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue