plplot: Support wx and xwin drivers

This commit is contained in:
Doron Behar 2021-09-26 16:31:17 +03:00 committed by Shamrock Lee
parent 0435e9318d
commit 9e88aadbb4
2 changed files with 30 additions and 3 deletions

View file

@ -1,6 +1,16 @@
{ lib, stdenv, fetchurl, cmake }:
{ lib
, stdenv
, fetchurl
, cmake
, enableWX ? false
, wxGTK31, wxmac
, enableXWin ? false
, libX11
}:
stdenv.mkDerivation rec {
let
wxWidgets = (if stdenv.isDarwin then wxmac else wxGTK31);
in stdenv.mkDerivation rec {
pname = "plplot";
version = "5.15.0";
@ -11,6 +21,21 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [
]
++ lib.optional enableWX wxWidgets
++ lib.optional enableXWin libX11
;
passthru = {
inherit
enableWX
wxWidgets
enableXWin
libX11
;
};
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" "-DBUILD_TEST=ON" ];
doCheck = true;

View file

@ -5900,7 +5900,9 @@ with pkgs;
pixz = callPackage ../tools/compression/pixz { };
plplot = callPackage ../development/libraries/plplot { };
plplot = callPackage ../development/libraries/plplot {
inherit (xorg) libX11;
};
pxattr = callPackage ../tools/archivers/pxattr { };