diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-12-06 19:57:55 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-02-08 13:48:30 +0000 |
commit | bf3aadfdd39aa197e18bade671fab6726349ffa4 (patch) | |
tree | 698567af766ed441d757b57a7b21e68d4a342a2b /nixpkgs/pkgs/development/libraries/fltk/common.nix | |
parent | f4afc5a01d9539ce09e47494e679c51f80723d07 (diff) | |
parent | 99665eb45f58d959d2cb9e49ddb960c79d596f33 (diff) | |
download | nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.gz nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.bz2 nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.lz nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.xz nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.zst nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.zip |
Merge commit '99665eb45f58d959d2cb9e49ddb960c79d596f33'
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/fltk/common.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/fltk/common.nix | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/nixpkgs/pkgs/development/libraries/fltk/common.nix b/nixpkgs/pkgs/development/libraries/fltk/common.nix index 06e1c05c7d07..426a85e6a220 100644 --- a/nixpkgs/pkgs/development/libraries/fltk/common.nix +++ b/nixpkgs/pkgs/development/libraries/fltk/common.nix @@ -36,19 +36,13 @@ , withDocs ? true , doxygen , graphviz -, texlive -, withExamples ? true +, withExamples ? (stdenv.buildPlatform == stdenv.hostPlatform) , withShared ? true }: let onOff = value: if value then "ON" else "OFF"; - tex = texlive.combine { - inherit (texlive) - scheme-medium varwidth multirow hanging adjustbox collectbox stackengine - sectsty tocloft newunicodechar etoc; - }; in stdenv.mkDerivation rec { pname = "fltk"; @@ -81,7 +75,6 @@ stdenv.mkDerivation rec { ] ++ lib.optionals withDocs [ doxygen graphviz - tex ]; buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ @@ -146,13 +139,17 @@ stdenv.mkDerivation rec { # Examples & Tests "-DFLTK_BUILD_EXAMPLES=${onOff withExamples}" + "-DFLTK_BUILD_TEST=${onOff withExamples}" # Docs "-DOPTION_BUILD_HTML_DOCUMENTATION=${onOff withDocs}" - "-DOPTION_BUILD_PDF_DOCUMENTATION=${onOff withDocs}" + "-DOPTION_BUILD_PDF_DOCUMENTATION=OFF" "-DOPTION_INSTALL_HTML_DOCUMENTATION=${onOff withDocs}" - "-DOPTION_INSTALL_PDF_DOCUMENTATION=${onOff withDocs}" + "-DOPTION_INSTALL_PDF_DOCUMENTATION=OFF" "-DOPTION_INCLUDE_DRIVER_DOCUMENTATION=${onOff withDocs}" + + # RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/ + "-DCMAKE_SKIP_BUILD_RPATH=ON" ]; preBuild = lib.optionalString (withCairo && withShared && stdenv.hostPlatform.isDarwin) '' |