This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

yubikey: add workaround for broken pcsclite

+11 -2
+11 -2
2configs/yubikey.nix
··· 1 - { self, pkgs, ... }: 1 + { self, lib, pkgs, ... }: 2 + let 3 + # pcsclite workaround until https://github.com/NixOS/nixpkgs/pull/308884 is in unstable 4 + pcsclite = pkgs.pcsclite.overrideAttrs (old: { 5 + postPatch = old.postPatch + (lib.optionalString (!(lib.strings.hasInfix ''--replace-fail "libpcsclite_real.so.1"'' old.postPatch)) '' 6 + substituteInPlace src/libredirect.c src/spy/libpcscspy.c \ 7 + --replace-fail "libpcsclite_real.so.1" "$lib/lib/libpcsclite_real.so.1" 8 + ''); 9 + }); 10 + in 2 11 { 3 12 environment.systemPackages = with pkgs; [ 4 13 yubikey-personalization ··· 18 27 mkdir -p $HOME/.gnupg 19 28 ${pkgs.coreutils}/bin/ln -sf ${pkgs.writeText "scdaemon.conf" '' 20 29 disable-ccid 21 - pcsc-driver ${pkgs.pcsclite.lib}/lib/libpcsclite.so.1 30 + pcsc-driver ${pcsclite.lib}/lib/libpcsclite.so.1 22 31 card-timeout 1 23 32 24 33 # Always try to use yubikey as the first reader