mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
luaPackages.nfd: fix build on darwin
This commit is contained in:
parent
b5b79d6a42
commit
2aedc956a6
@ -1,5 +1,5 @@
|
||||
{ fetchFromGitHub, buildLuarocksPackage, lua, pkg-config, lib
|
||||
, substituteAll, zenity }:
|
||||
{ stdenv, fetchFromGitHub, buildLuarocksPackage, lua, pkg-config, lib
|
||||
, substituteAll, zenity, AppKit }:
|
||||
|
||||
buildLuarocksPackage {
|
||||
pname = "nfd";
|
||||
@ -25,6 +25,8 @@ buildLuarocksPackage {
|
||||
extraVariables.LUA_LIBDIR = "${lua}/lib";
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ AppKit ];
|
||||
|
||||
fixupPhase = ''
|
||||
find $out -name nfd_zenity.so -execdir mv {} nfd.so \;
|
||||
'';
|
||||
|
@ -95,6 +95,7 @@ in
|
||||
|
||||
nfd = callPackage ../development/lua-modules/nfd {
|
||||
inherit (pkgs.gnome) zenity;
|
||||
inherit (pkgs.darwin.apple_sdk.frameworks) AppKit;
|
||||
};
|
||||
|
||||
vicious = (callPackage ({ fetchFromGitHub }: stdenv.mkDerivation rec {
|
||||
|
Loading…
Reference in New Issue
Block a user