Commit e5457f65 authored by Petingoso's avatar Petingoso Committed by Matthieu Coudron
Browse files

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
parent c4bd61ba
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
{ 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.";