_1password: do not strip binary on darwin(OSX) (#88091)
Stripping the binary on OSX causes op(1password) to fail immediately. Setting dontStrip = true; fixes the issue. Additionally, adding a very simple installCheck section for testing purposes. Co-authored-by: Corban Raun <craun@instructure.com>
This commit is contained in:
parent
28667152aa
commit
c640f7efd1
@ -34,8 +34,16 @@ stdenv.mkDerivation rec {
|
|||||||
install -D op $out/bin/op
|
install -D op $out/bin/op
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
dontStrip = stdenv.isDarwin;
|
||||||
|
|
||||||
nativeBuildInputs = stdenv.lib.optionals stdenv.isLinux [ autoPatchelfHook ];
|
nativeBuildInputs = stdenv.lib.optionals stdenv.isLinux [ autoPatchelfHook ];
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
installCheckPhase = ''
|
||||||
|
$out/bin/op --version
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "1Password command-line tool";
|
description = "1Password command-line tool";
|
||||||
homepage = "https://support.1password.com/command-line/";
|
homepage = "https://support.1password.com/command-line/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user