mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
pam-watchid: init (#368071)
This commit is contained in:
commit
06f2f12d34
1 changed files with 39 additions and 0 deletions
39
pkgs/by-name/pa/pam-watchid/package.nix
Normal file
39
pkgs/by-name/pa/pam-watchid/package.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue