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
|
|
@ -0,0 +1,22 @@
|
|||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -23,7 +23,7 @@
|
||||
omedit-testsuite: omedit-testsuite.skip
|
||||
omedit-testsuite.skip: omedit.skip testsuite-depends
|
||||
$(MAKE) -f $(defaultMakefileTarget) -C OMEdit/Testsuite
|
||||
-omparser: omparser.skip
|
||||
+omparser: build-dirs omparser.skip
|
||||
omparser.skip:
|
||||
test -f $@ || $(MAKE) -C OMParser OMBUILDDIR=@OMBUILDDIR@ "host_short=@host_short@" CC="@CC@" CXX="@CXX@" CFLAGS="@CFLAGS@" CPPFLAGS="@CPPFLAGS@" CXXFLAGS="@CXXFLAGS@"
|
||||
omsimulator: omsimulator.skip
|
||||
@@ -134,6 +134,10 @@
|
||||
INSTALL_JAVADIR = ${DESTDIR}${datadir}/omc/java
|
||||
INSTALL_LOCALEDIR = ${DESTDIR}${datadir}/locale
|
||||
|
||||
+build-dirs:
|
||||
+ mkdir -p "@OMBUILDDIR@"/lib/@host_short@/omc
|
||||
+ mkdir -p "@OMBUILDDIR@"/include/omc
|
||||
+
|
||||
install-dirs:
|
||||
@test ! "${DESTDIR}/@prefix@" -ef "@OMBUILDDIR@" || (echo Error: Install and build dirs are the same && false)
|
||||
if [ "@APP@" = ".app" ]; then mkdir -p ${INSTALL_APPDIR}; fi
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
{ lib
|
||||
, pkg-config
|
||||
, jre8
|
||||
, libuuid
|
||||
, openmodelica
|
||||
, mkOpenModelicaDerivation
|
||||
}:
|
||||
|
||||
mkOpenModelicaDerivation rec {
|
||||
pname = "omparser";
|
||||
omdir = "OMParser";
|
||||
omdeps = [ openmodelica.omcompiler ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ jre8 libuuid ];
|
||||
|
||||
patches = [ ./Makefile.in.patch ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An antlr4-based parser of Modelica files from OpenModelica
|
||||
suite";
|
||||
homepage = "https://openmodelica.org";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ balodja smironov ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue