Skip to content

Commit

Permalink
lua51Packages.nfd: feat added postInstallCheck for test
Browse files Browse the repository at this point in the history
lua51Packages.nfd: cleanup duplicate line

lua51Packages.nfd: cleanup useless undefined hooks

lua51Packages.nfd: squashed commits

lua51Packages.nfd: change to generic buster
  • Loading branch information
Petingoso committed May 9, 2024
1 parent 7ec2e73 commit 8710830
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pkgs/development/lua-modules/nfd/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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.";
Expand Down

0 comments on commit 8710830

Please sign in to comment.