From e5457f657bbbc558cd953e4d34239f7dde8601a0 Mon Sep 17 00:00:00 2001 From: Petingoso Date: Sat, 4 May 2024 22:12:08 +0100 Subject: [PATCH] lua51Packages.nfd: feat added postInstallCheck for test lua51Packages.nfd: cleanup duplicate line lua51Packages.nfd: cleanup useless undefined hooks lua51Packages.nfd: squashed commits lua51Packages.nfd: change to generic buster --- pkgs/development/lua-modules/nfd/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/lua-modules/nfd/default.nix b/pkgs/development/lua-modules/nfd/default.nix index 581b5289aef0..1cc8d66044c7 100644 --- a/pkgs/development/lua-modules/nfd/default.nix +++ b/pkgs/development/lua-modules/nfd/default.nix @@ -1,5 +1,4 @@ -{ stdenv, fetchFromGitHub, buildLuarocksPackage, lua, pkg-config, lib -, substituteAll, zenity, AppKit }: +{ stdenv, fetchFromGitHub, buildLuarocksPackage, lua51Packages, lua, pkg-config, lib, substituteAll, zenity, AppKit}: buildLuarocksPackage { pname = "nfd"; @@ -27,10 +26,17 @@ buildLuarocksPackage { buildInputs = lib.optionals stdenv.isDarwin [ AppKit ]; - fixupPhase = '' + postInstall = '' find $out -name nfd_zenity.so -execdir mv {} nfd.so \; ''; + doInstallCheck = true; + installCheckInputs = [ lua.pkgs.busted ]; + installCheckPhase= '' + busted lua/spec/ + ''; + + meta = { description = "A tiny, neat lua library that portably invokes native file open and save dialogs.";