From 1384e98dad87537ab4e01caec0fbe48dab8643d1 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:45:14 -0800 Subject: [PATCH] nix: add truststore as optional dependency Co-authored-by: Melody --- packaging/nix/umu-launcher.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packaging/nix/umu-launcher.nix b/packaging/nix/umu-launcher.nix index ef78d825..24bad46a 100644 --- a/packaging/nix/umu-launcher.nix +++ b/packaging/nix/umu-launcher.nix @@ -1,4 +1,4 @@ -{pyth1 ,python3Packages , umu-launcher, pkgs,version, ...}: +{lib, pyth1 ,python3Packages , umu-launcher, pkgs,version, truststore ? true, ...}: python3Packages.buildPythonPackage { pname = "umu-launcher"; version = "${version}"; @@ -20,8 +20,7 @@ python3Packages.buildPythonPackage { pkgs.python3Packages.xlib pkgs.python3Packages.filelock pkgs.python3Packages.urllib3 - pkgs.python3Packages.truststore - ]; + ] ++ lib.optional truststore pkgs.python3Packages.truststore; makeFlags = [ "PYTHON_INTERPRETER=${pyth1}/bin/python" "SHELL_INTERPRETER=/run/current-system/sw/bin/bash" "DESTDIR=${placeholder "out"}" ]; dontUseMesonConfigure = true; dontUseNinjaBuild = true;