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
44
pkgs/development/tools/ocaml/omake/0.9.8.6-rc1.nix
Normal file
44
pkgs/development/tools/ocaml/omake/0.9.8.6-rc1.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{lib, stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
|
||||
let
|
||||
pname = "omake";
|
||||
version = "0.9.8.6-0.rc1";
|
||||
webpage = "http://omake.metaprl.org";
|
||||
in
|
||||
|
||||
if lib.versionAtLeast ocaml.version "4.06"
|
||||
then throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://src.fedoraproject.org/repo/pkgs/ocaml-omake/${pname}-${version}.tar.gz/fe39a476ef4e33b7ba2ca77a6bcaded2/${pname}-${version}.tar.gz";
|
||||
sha256 = "1sas02pbj56m7wi5vf3vqrrpr4ynxymw2a8ybvfj2dkjf7q9ii13";
|
||||
};
|
||||
patchFlags = [ "-p0" ];
|
||||
patches = [ ./warn.patch ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ ocaml ncurses ];
|
||||
|
||||
dontInstall = true;
|
||||
buildPhase = ''
|
||||
make bootstrap
|
||||
make PREFIX=$out all
|
||||
make PREFIX=$out install
|
||||
'';
|
||||
# prefixKey = "-prefix ";
|
||||
#
|
||||
# configureFlags = if transitional then "--transitional" else "--strict";
|
||||
#
|
||||
# buildFlags = [ "world.opt" ];
|
||||
|
||||
meta = {
|
||||
description = "Omake build system";
|
||||
homepage = webpage;
|
||||
license = "GPL";
|
||||
platforms = ocaml.meta.platforms or [];
|
||||
};
|
||||
}
|
||||
24
pkgs/development/tools/ocaml/omake/default.nix
Normal file
24
pkgs/development/tools/ocaml/omake/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ lib, stdenv, fetchurl, ocaml, ncurses }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
pname = "omake";
|
||||
version = "0.10.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.camlcity.org/download/${pname}-${version}.tar.gz";
|
||||
sha256 = "07bdg1h5i7qnlv9xq81ad5hfypl10hxm771h4rjyl5cn8plhfcgz";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml ncurses ];
|
||||
|
||||
meta = {
|
||||
description = "A build system designed for scalability and portability";
|
||||
homepage = "http://projects.camlcity.org/projects/omake.html";
|
||||
license = with lib.licenses; [
|
||||
mit /* scripts */
|
||||
gpl2 /* program */
|
||||
];
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
||||
10
pkgs/development/tools/ocaml/omake/warn.patch
Normal file
10
pkgs/development/tools/ocaml/omake/warn.patch
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
diff -p1 -aur ../omake-0.9.8.6.ori/lib/build/OCaml.om ./lib/build/OCaml.om
|
||||
--- ../omake-0.9.8.6.ori/lib/build/OCaml.om 2008-03-05 01:07:25.000000000 +0000
|
||||
+++ ./lib/build/OCaml.om 2013-06-01 15:52:37.000000000 +0000
|
||||
@@ -178,3 +178,3 @@ declare OCAMLDEPFLAGS
|
||||
public.OCAMLPPFLAGS =
|
||||
-public.OCAMLFLAGS = -warn-error A
|
||||
+public.OCAMLFLAGS =
|
||||
public.OCAMLCFLAGS = -g
|
||||
Seulement dans ./lib/build: OCaml.om~
|
||||
Seulement dans .: warn.patch
|
||||
Loading…
Add table
Add a link
Reference in a new issue