From 108ce1896eabd6526bae91d3fcc5806e67cf812e Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Wed, 6 Mar 2024 18:17:53 -0500 Subject: [PATCH] openusd: init as python3Packages.openusd but with executables Disable building these executables when obtaining via python3*Packages, as most likely one is using that for the libraries instead, massively reducing build times and closure size for such use cases. --- pkgs/development/python-modules/openusd/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/openusd/default.nix b/pkgs/development/python-modules/openusd/default.nix index b2bd04cb910f..f10ef51b99d8 100644 --- a/pkgs/development/python-modules/openusd/default.nix +++ b/pkgs/development/python-modules/openusd/default.nix @@ -33,8 +33,8 @@ tbb, withDocs ? false, withOsl ? true, - withTools ? true, - withUsdView ? true, + withTools ? false, + withUsdView ? false, writeShellScriptBin, }: diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7ed2913b7680..0de9fa755d4e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2001,6 +2001,11 @@ with pkgs; openbugs = pkgsi686Linux.callPackage ../applications/science/machine-learning/openbugs { }; + openusd = python3Packages.openusd.override { + withTools = true; + withUsdView = true; + }; + osquery = callPackage ../tools/system/osquery { }; paperview = callPackage ../tools/X11/paperview { };