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
This commit is contained in:
Petingoso 2024-05-04 22:12:08 +01:00 committed by Matthieu Coudron
parent c4bd61ba34
commit e5457f657b

View file

@ -1,5 +1,4 @@
{ stdenv, fetchFromGitHub, buildLuarocksPackage, lua, pkg-config, lib { stdenv, fetchFromGitHub, buildLuarocksPackage, lua51Packages, lua, pkg-config, lib, substituteAll, zenity, AppKit}:
, substituteAll, zenity, AppKit }:
buildLuarocksPackage { buildLuarocksPackage {
pname = "nfd"; pname = "nfd";
@ -27,10 +26,17 @@ buildLuarocksPackage {
buildInputs = lib.optionals stdenv.isDarwin [ AppKit ]; buildInputs = lib.optionals stdenv.isDarwin [ AppKit ];
fixupPhase = '' postInstall = ''
find $out -name nfd_zenity.so -execdir mv {} nfd.so \; find $out -name nfd_zenity.so -execdir mv {} nfd.so \;
''; '';
doInstallCheck = true;
installCheckInputs = [ lua.pkgs.busted ];
installCheckPhase= ''
busted lua/spec/
'';
meta = { meta = {
description = description =
"A tiny, neat lua library that portably invokes native file open and save dialogs."; "A tiny, neat lua library that portably invokes native file open and save dialogs.";