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
13
pkgs/development/compilers/colm/cross-compile.patch
Normal file
13
pkgs/development/compilers/colm/cross-compile.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--- a/configure.ac 2019-07-09 22:41:03.166948024 -0700
|
||||
+++ b/configure.ac 2019-07-09 22:41:16.699948056 -0700
|
||||
@@ -40,9 +40,7 @@
|
||||
|
||||
dnl Choose a default for the build_manual var. If the dist file is present in
|
||||
dnl the root then default to no, otherwise go for it.
|
||||
-AC_CHECK_FILES( [$srcdir/DIST],
|
||||
- [. $srcdir/DIST;],
|
||||
- [build_manual=yes; ] )
|
||||
+build_manual=yes;
|
||||
|
||||
dnl Set to true if the manual should be built.
|
||||
AM_CONDITIONAL(BUILD_MANUAL, [test "x$build_manual" = "xyes"])
|
||||
30
pkgs/development/compilers/colm/default.nix
Normal file
30
pkgs/development/compilers/colm/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, stdenv, fetchurl, makeWrapper, gcc, asciidoc, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "colm";
|
||||
version = "0.13.0.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.colm.net/files/colm/${pname}-${version}.tar.gz";
|
||||
sha256 = "0f76iri173l2wja2v7qrwmf958cqwh5g9x4bhj2z8wknmlla6gz4";
|
||||
};
|
||||
|
||||
patches = [ ./cross-compile.patch ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper asciidoc autoreconfHook ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/colm \
|
||||
--prefix PATH ":" ${gcc}/bin
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A programming language for the analysis and transformation of computer languages";
|
||||
homepage = "http://www.colm.net/open-source/colm";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue