mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
pizauth: fix build on darwin
This commit is contained in:
parent
6f42eff1de
commit
0bd69ba761
@ -3,8 +3,8 @@
|
|||||||
rustPlatform,
|
rustPlatform,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
|
apple-sdk_11,
|
||||||
stdenv,
|
stdenv,
|
||||||
darwin,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -14,15 +14,16 @@ rustPlatform.buildRustPackage rec {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ltratt";
|
owner = "ltratt";
|
||||||
repo = "pizauth";
|
repo = "pizauth";
|
||||||
rev = "pizauth-${version}";
|
rev = "refs/tags/pizauth-${version}";
|
||||||
hash = "sha256-9NezG644oCLTWHTdUaUpJbuwkJu3at/IGNH3FSxl/DI=";
|
hash = "sha256-9NezG644oCLTWHTdUaUpJbuwkJu3at/IGNH3FSxl/DI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-Lp5ovkQKShgT7EFvQ+5KE3eQWJEQAL68Bk1d+wUo+bc=";
|
cargoHash = "sha256-Lp5ovkQKShgT7EFvQ+5KE3eQWJEQAL68Bk1d+wUo+bc=";
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
# pizauth cannot be built with default apple-sdk_10 on x86_64-darwin, pin to 11
|
||||||
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11;
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installShellCompletion --cmd pizauth \
|
installShellCompletion --cmd pizauth \
|
||||||
|
Loading…
Reference in New Issue
Block a user