mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
37 lines
1.2 KiB
Nix
37 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libp11, pam, libintl, fetchpatch }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pam_p11";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenSC";
|
|
repo = "pam_p11";
|
|
rev = "pam_p11-${version}";
|
|
sha256 = "1caidy18rq5zk82d51x8vwidmkhwmanf3qm25x1yrdlbhxv6m7lk";
|
|
};
|
|
|
|
patches = [
|
|
# fix with openssl 3.x
|
|
# https://github.com/OpenSC/pam_p11/pull/22
|
|
(fetchpatch {
|
|
name = "OpenSC-pam_p11-pull-22.patch";
|
|
url = "https://github.com/OpenSC/pam_p11/compare/cd4eba2e921e1c2f93cde71922a76af99376246c...debd4f7acfaf998cfe4002e0be5c35ad9a9591b5.patch";
|
|
excludes = [ ".github/build.sh" ];
|
|
hash = "sha256-bm/agnBgvrr8L8yoGK4gzBqOGgsNWf9NIgcNJG7proE=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
buildInputs = [ pam libp11.passthru.openssl libp11 ]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ libintl ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/OpenSC/pam_p11";
|
|
description = "Authentication with PKCS#11 modules";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ sb0 ];
|
|
};
|
|
}
|