From d758361e555c1041440ee39a47cd7f53193d8ae5 Mon Sep 17 00:00:00 2001 From: Guillaume Fournier <> Date: Sun, 5 Nov 2023 22:26:28 +0100 Subject: [PATCH] numbat: Add modules folder numbat: use env as evironment variable prefix Co-authored-by: OTABI Tomoya --- pkgs/by-name/nu/numbat/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/nu/numbat/package.nix b/pkgs/by-name/nu/numbat/package.nix index 3543115eda49..5da88e6af8ed 100644 --- a/pkgs/by-name/nu/numbat/package.nix +++ b/pkgs/by-name/nu/numbat/package.nix @@ -24,6 +24,13 @@ rustPlatform.buildRustPackage rec { darwin.apple_sdk.frameworks.Security ]; + env.NUMBAT_SYSTEM_MODULE_PATH = "${placeholder "out"}/share/${pname}/modules"; + + postInstall = '' + mkdir -p $out/share/${pname} + cp -r $src/${pname}/modules $out/share/${pname}/ + ''; + passthru.tests.version = testers.testVersion { package = numbat; };