Files
nixpkgs/pkgs/by-name/pa/pam-watchid/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

39 lines
863 B
Nix

{
lib,
swiftPackages,
swift,
swiftpm,
fetchFromGitHub,
}:
swiftPackages.stdenv.mkDerivation {
pname = "pam-watchid";
version = "2-unstable-2024-12-24";
src = fetchFromGitHub {
owner = "Logicer16";
repo = "pam-watchid";
rev = "bb9c6ea62207dd9d41a08ca59c7a1f5d6fa07189";
hash = "sha256-6SqSACoG7VkyYfz+xyU/L2J69RxHTTvzGexjGB2gDuY=";
};
nativeBuildInputs = [
swift
swiftpm
];
installPhase = ''
binPath="$(swiftpmBinPath)"
mkdir -p $out/lib
cp $binPath/libpam-watchid.dylib $out/lib/pam_watchid.so
'';
meta = {
description = "PAM plugin module that allows the Apple Watch to be used for authentication";
homepage = "https://github.com/Logicer16/pam-watchid";
license = lib.licenses.unlicense;
maintainers = [ lib.maintainers.samasaur ];
platforms = lib.platforms.darwin;
};
}