mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
plplot: Support wx and xwin drivers
This commit is contained in:
parent
0435e9318d
commit
9e88aadbb4
@ -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;
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user