diff options
Diffstat (limited to 'pkgs/tools/security/yubikey-agent/default.nix')
-rw-r--r-- | pkgs/tools/security/yubikey-agent/default.nix | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/pkgs/tools/security/yubikey-agent/default.nix b/pkgs/tools/security/yubikey-agent/default.nix deleted file mode 100644 index f43e83e575e7..000000000000 --- a/pkgs/tools/security/yubikey-agent/default.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ stdenv, lib, fetchFromGitHub, buildGoModule, libnotify, pcsclite, pkg-config, darwin }: - -buildGoModule rec { - pname = "yubikey-agent"; - - version = "0.1.6"; - src = fetchFromGitHub { - owner = "FiloSottile"; - repo = "yubikey-agent"; - rev = "v${version}"; - sha256 = "sha256-Knk1ipBOzjmjrS2OFUMuxi1TkyDcSYlVKezDWT//ERY="; - }; - - buildInputs = - lib.optional stdenv.isLinux (lib.getDev pcsclite) - ++ lib.optional stdenv.isDarwin (darwin.apple_sdk.frameworks.PCSC); - - nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ]; - - postPatch = lib.optionalString stdenv.isLinux '' - substituteInPlace main.go --replace 'notify-send' ${libnotify}/bin/notify-send - ''; - - vendorHash = "sha256-+IRPs3wm3EvIgfQRpzcVpo2JBaFQlyY/RI1G7XfVS84="; - - doCheck = false; - - subPackages = [ "." ]; - - ldflags = [ "-s" "-w" "-X main.Version=${version}" ]; - - postInstall = lib.optionalString stdenv.isLinux '' - mkdir -p $out/lib/systemd/user - substitute contrib/systemd/user/yubikey-agent.service $out/lib/systemd/user/yubikey-agent.service \ - --replace 'ExecStart=yubikey-agent' "ExecStart=$out/bin/yubikey-agent" - ''; - - meta = with lib; { - description = "Seamless ssh-agent for YubiKeys"; - mainProgram = "yubikey-agent"; - license = licenses.bsd3; - homepage = "https://filippo.io/yubikey-agent"; - maintainers = with lib.maintainers; [ philandstuff rawkode ]; - platforms = platforms.darwin ++ platforms.linux; - }; -} |