pam-reattach: cleanup (#205509)

This commit is contained in:
Sandro 2022-12-17 17:35:23 +01:00 committed by GitHub
parent fee02fd5c2
commit fb769ee3c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,5 @@
{ lib, stdenv, fetchFromGitHub, cmake, openpam, darwin }:
let
sdk =
if stdenv.isAarch64
then null
else darwin.apple_sdk.sdk;
in
stdenv.mkDerivation rec {
pname = "pam_reattach";
version = "1.3";
@ -26,12 +19,10 @@ stdenv.mkDerivation rec {
"arm64"
}"
"-DENABLE_CLI=ON"
]
++ lib.optional (sdk != null)
"-DCMAKE_LIBRARY_PATH=${sdk}/usr/lib";
] ++ lib.optional (!stdenv.isAarch64) "-DCMAKE_LIBRARY_PATH=${darwin.apple_sdk.sdk}/usr/lib";
buildInputs = [ openpam ]
++ lib.optional (sdk != null) sdk;
++ lib.optional (!stdenv.isAarch64) darwin.apple_sdk.sdk;
nativeBuildInputs = [ cmake ];