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
37
pkgs/development/ocaml-modules/curses/default.nix
Normal file
37
pkgs/development/ocaml-modules/curses/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ncurses }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml-curses";
|
||||
version = "1.0.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mbacarella";
|
||||
repo = "curses";
|
||||
rev = version;
|
||||
sha256 = "0yy3wf8i7jgvzdc40bni7mvpkvclq97cgb5fw265mrjj0iqpkqpd";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ ncurses ];
|
||||
|
||||
nativeBuildInputs = [ ocaml findlib ];
|
||||
|
||||
# Fix build for recent ncurses versions
|
||||
NIX_CFLAGS_COMPILE = "-DNCURSES_INTERNALS=1";
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace curses.ml --replace "pp gcc" "pp $CC"
|
||||
'';
|
||||
|
||||
buildPhase = "make all opt";
|
||||
|
||||
meta = with lib; {
|
||||
description = "OCaml Bindings to curses/ncurses";
|
||||
homepage = "https://github.com/mbacarella/curses";
|
||||
license = licenses.lgpl21Plus;
|
||||
changelog = "https://github.com/mbacarella/curses/raw/${version}/CHANGES";
|
||||
maintainers = [ maintainers.volth ];
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue