Skip to content

Commit 06f2f12

Browse files
authored
pam-watchid: init (#368071)
2 parents a9ffce6 + 456c7ed commit 06f2f12

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
lib,
3+
swiftPackages,
4+
swift,
5+
swiftpm,
6+
fetchFromGitHub,
7+
...
8+
}:
9+
10+
swiftPackages.stdenv.mkDerivation {
11+
pname = "pam-watchid";
12+
version = "2-unstable-2024-12-24";
13+
14+
src = fetchFromGitHub {
15+
owner = "Logicer16";
16+
repo = "pam-watchid";
17+
rev = "bb9c6ea62207dd9d41a08ca59c7a1f5d6fa07189";
18+
hash = "sha256-6SqSACoG7VkyYfz+xyU/L2J69RxHTTvzGexjGB2gDuY=";
19+
};
20+
21+
nativeBuildInputs = [
22+
swift
23+
swiftpm
24+
];
25+
26+
installPhase = ''
27+
binPath="$(swiftpmBinPath)"
28+
mkdir -p $out/lib
29+
cp $binPath/libpam-watchid.dylib $out/lib/pam_watchid.so
30+
'';
31+
32+
meta = {
33+
description = "PAM plugin module that allows the Apple Watch to be used for authentication";
34+
homepage = "https://github.com/Logicer16/pam-watchid";
35+
license = lib.licenses.unlicense;
36+
maintainers = [ lib.maintainers.samasaur ];
37+
platforms = lib.platforms.darwin;
38+
};
39+
}

0 commit comments

Comments
 (0)