Merge pull request #46877 from marsam/feature/fix-noti-darwin
noti: fix darwin build
This commit is contained in:
commit
9cc7be6639
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
{ stdenv, buildGoPackage, fetchFromGitHub, Cocoa }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
name = "noti-${version}";
|
name = "noti-${version}";
|
||||||
|
@ -11,6 +11,10 @@ buildGoPackage rec {
|
||||||
sha256 = "1chsqfqk0pnhx5k2nr4c16cpb8m6zv69l1jvv4v4903zgfzcm823";
|
sha256 = "1chsqfqk0pnhx5k2nr4c16cpb8m6zv69l1jvv4v4903zgfzcm823";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
|
||||||
|
# TODO: Remove this when we update apple_sdk
|
||||||
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionals stdenv.isDarwin [ "-fno-objc-arc" ];
|
||||||
|
|
||||||
goPackagePath = "github.com/variadico/noti";
|
goPackagePath = "github.com/variadico/noti";
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
|
|
@ -1467,7 +1467,9 @@ with pkgs;
|
||||||
|
|
||||||
noteshrink = callPackage ../tools/misc/noteshrink { };
|
noteshrink = callPackage ../tools/misc/noteshrink { };
|
||||||
|
|
||||||
noti = callPackage ../tools/misc/noti { };
|
noti = callPackage ../tools/misc/noti {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Cocoa;
|
||||||
|
};
|
||||||
|
|
||||||
nrsc5 = callPackage ../applications/misc/nrsc5 { };
|
nrsc5 = callPackage ../applications/misc/nrsc5 { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue