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,7 @@
|
|||
--- a/bindings/xmbind.alias
|
||||
+++ b/bindings/xmbind.alias
|
||||
@@ -62,3 +62,4 @@
|
||||
"Sun Microsystems, Inc." sun
|
||||
! "Sun Microsystems, Inc." sun_at
|
||||
"Tektronix, Inc." tek
|
||||
+"The X.Org Foundation" tpc
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
--- a/lib/Xm/XmP.h
|
||||
+++ b/lib/Xm/XmP.h
|
||||
@@ -1437,7 +1437,7 @@ extern void _XmDestroyParentCallback(
|
||||
|
||||
#endif /* NO_XM_1_2_BC */
|
||||
|
||||
-#if __GNUC__
|
||||
+#if __GNUC__ && ! __APPLE__
|
||||
# define XM_DEPRECATED __attribute__((__deprecated__))
|
||||
# define XM_ALIAS(sym) __attribute__((__weak__,alias(#sym)))
|
||||
#else
|
||||
|
||||
52
pkgs/development/libraries/motif/default.nix
Normal file
52
pkgs/development/libraries/motif/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, libtool
|
||||
, xlibsWrapper, xbitmaps, libXrender, libXmu, libXt
|
||||
, expat, libjpeg, libpng, libiconv
|
||||
, flex
|
||||
, libXp, libXau
|
||||
, demoSupport ? false
|
||||
}:
|
||||
# refer to the gentoo package
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "motif";
|
||||
version = "2.3.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/motif/${pname}-${version}.tar.gz";
|
||||
sha256 = "1rxwkrhmj8sfg7dwmkhq885valwqbh26d79033q7vb7fcqv756w5";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
libtool
|
||||
xlibsWrapper xbitmaps libXrender libXmu libXt
|
||||
expat libjpeg libpng libiconv
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config flex ];
|
||||
|
||||
propagatedBuildInputs = [ libXp libXau ];
|
||||
|
||||
prePatch = lib.optionalString (!demoSupport) ''
|
||||
sed '/^SUBDIRS =,^$/s/\<demos\>//' -i Makefile.{am,in}
|
||||
'';
|
||||
|
||||
patches = [
|
||||
./Remove-unsupported-weak-refs-on-darwin.patch
|
||||
./Add-X.Org-to-bindings-file.patch
|
||||
(fetchpatch rec {
|
||||
name = "fix-format-security.patch";
|
||||
url = "https://raw.githubusercontent.com/void-linux/void-packages/b9a1110dabb01c052dadc1abae1413bd4afe3652/srcpkgs/motif/patches/02-${name}";
|
||||
sha256 = "13vzpf8yxvhf4gl7q0yzlr6ak1yzx382fsqsrv5lc8jbbg4nwrrq";
|
||||
})
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://motif.ics.com";
|
||||
description = "Unix standard widget-toolkit and window-manager";
|
||||
platforms = platforms.unix;
|
||||
license = with licenses; [ lgpl21Plus ];
|
||||
maintainers = with maintainers; [ qyliss ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue