whar
This commit is contained in:
parent
badb8b232f
commit
e3799acaab
2 changed files with 12 additions and 8 deletions
16
flake.nix
16
flake.nix
|
@ -249,7 +249,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
devShell = mkShell.override {inherit stdenv;} rec {
|
devShell = mkShell.override {inherit stdenv;} {
|
||||||
packages =
|
packages =
|
||||||
[
|
[
|
||||||
alejandra
|
alejandra
|
||||||
|
@ -273,11 +273,15 @@
|
||||||
|
|
||||||
LD_LIBRARY_PATH = "${lib.makeLibraryPath deps}";
|
LD_LIBRARY_PATH = "${lib.makeLibraryPath deps}";
|
||||||
NIX_ENFORCE_NO_NATIVE = 0;
|
NIX_ENFORCE_NO_NATIVE = 0;
|
||||||
SDKROOT = lib.optionalString stdenv.isDarwin "${pkgs.pkgsStatic.apple-sdk_15}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk";
|
|
||||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-isysroot ${SDKROOT}";
|
shellHook = lib.optionalString pkgs.stdenv.hostPlatform.isDarwin ''
|
||||||
NIX_CXXFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-isysroot ${SDKROOT}";
|
export SDKROOT=${pkgs.pkgsStatic.apple-sdk_15}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
|
||||||
NIX_OBJCFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-isysroot ${SDKROOT}";
|
export DEVELOPER_DIR=${pkgs.pkgsStatic.apple-sdk_15}
|
||||||
NIX_OBJCXXFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-isysroot ${SDKROOT}";
|
export NIX_CFLAGS_COMPILE="-isysroot $SDKROOT"
|
||||||
|
export NIX_CXXFLAGS_COMPILE="-isysroot $SDKROOT"
|
||||||
|
export NIX_OBJCFLAGS_COMPILE="-isysroot $SDKROOT"
|
||||||
|
export NIX_OBJCXXFLAGS_COMPILE="-isysroot $SDKROOT"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -20,8 +20,8 @@ using util::types::MediaInfo, util::types::String, util::types::Result;
|
||||||
@end
|
@end
|
||||||
#else
|
#else
|
||||||
extern "C++" {
|
extern "C++" {
|
||||||
fn GetCurrentPlayingInfo() -> Result<MediaInfo, DracError>;
|
fn GetCurrentPlayingInfo() -> Result<MediaInfo>;
|
||||||
fn GetMacOSVersion() -> Result<String, DracError>;
|
fn GetMacOSVersion() -> Result<String>;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue