diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-02-13 02:11:46 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-04-10 23:51:00 +0000 |
commit | 8edca5ad7943d4ea4f61be5c22cacb1fa8d10acd (patch) | |
tree | f6436395ff492afd375b54e8d546a4f9dc331512 /pkgs | |
parent | c1c617ff8dcb42c05e4e8a20ddc0dde1a50b3dd3 (diff) | |
download | nixpkgs-8edca5ad7943d4ea4f61be5c22cacb1fa8d10acd.tar nixpkgs-8edca5ad7943d4ea4f61be5c22cacb1fa8d10acd.tar.gz nixpkgs-8edca5ad7943d4ea4f61be5c22cacb1fa8d10acd.tar.bz2 nixpkgs-8edca5ad7943d4ea4f61be5c22cacb1fa8d10acd.tar.lz nixpkgs-8edca5ad7943d4ea4f61be5c22cacb1fa8d10acd.tar.xz nixpkgs-8edca5ad7943d4ea4f61be5c22cacb1fa8d10acd.tar.zst nixpkgs-8edca5ad7943d4ea4f61be5c22cacb1fa8d10acd.zip |
motif: 2.3.6 -> 2.3.8; clarify license; adopt
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/libraries/motif/Use-correct-header-for-malloc.patch | 19 | ||||
-rw-r--r-- | pkgs/development/libraries/motif/default.nix | 21 |
2 files changed, 9 insertions, 31 deletions
diff --git a/pkgs/development/libraries/motif/Use-correct-header-for-malloc.patch b/pkgs/development/libraries/motif/Use-correct-header-for-malloc.patch deleted file mode 100644 index d91e43ba2d3..00000000000 --- a/pkgs/development/libraries/motif/Use-correct-header-for-malloc.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- a/demos/programs/workspace/xrmLib.c -+++ b/demos/programs/workspace/xrmLib.c -@@ -30,7 +30,14 @@ static char rcsid[] = "$XConsortium: xrmLib.c /main/6 1995/07/14 10:01:41 drk $" - #endif - - #include <stdio.h> --#include <malloc.h> -+#if defined(__cplusplus) || defined(__STDC__) || defined(__EXTENSIONS__) -+# include <stdlib.h> -+# if defined(HAVE_MALLOC_H) -+# include <malloc.h> -+# elif defined(HAVE_SYS_MALLOC_H) -+# include <sys/malloc.h> -+# endif -+#endif - #include <Xm/Xm.h> - #include "wsm.h" - #include "wsmDebug.h" - diff --git a/pkgs/development/libraries/motif/default.nix b/pkgs/development/libraries/motif/default.nix index 0499aaec532..28b954d948c 100644 --- a/pkgs/development/libraries/motif/default.nix +++ b/pkgs/development/libraries/motif/default.nix @@ -9,11 +9,11 @@ stdenv.mkDerivation rec { pname = "motif"; - version = "2.3.6"; + version = "2.3.8"; src = fetchurl { url = "mirror://sourceforge/motif/${pname}-${version}.tar.gz"; - sha256 = "1ksqbp0bzdw6wcrx8s4hj4ivvxmw54hz85l2xfigb87cxmmhx0gs"; + sha256 = "1rxwkrhmj8sfg7dwmkhq885valwqbh26d79033q7vb7fcqv756w5"; }; buildInputs = [ @@ -28,24 +28,21 @@ stdenv.mkDerivation rec { hardeningDisable = [ "format" ]; - makeFlags = [ "CFLAGS=-fno-strict-aliasing" ]; - - prePatch = '' - rm lib/Xm/Xm.h - '' + lib.optionalString (!demoSupport) '' + prePatch = lib.optionalString (!demoSupport) '' sed '/^SUBDIRS =,^$/s/\<demos\>//' -i Makefile.{am,in} ''; patches = [ ./Remove-unsupported-weak-refs-on-darwin.patch - ./Use-correct-header-for-malloc.patch ./Add-X.Org-to-bindings-file.patch - ]; + ]; + + enableParallelBuilding = true; meta = with lib; { homepage = "https://motif.ics.com"; description = "Unix standard widget-toolkit and window-manager"; - platforms = with platforms; linux ++ darwin; - license = with licenses; [ lgpl21 ]; - maintainers = with maintainers; [ ]; + platforms = platforms.unix; + license = with licenses; [ lgpl21Plus ]; + maintainers = with maintainers; [ qyliss ]; }; } |