aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: dd8d5c626b63cfe0abc92b8ec11a93a89e2e3a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  description = "A pass extension for managing one-time-password (OTP) tokens";

  inputs = {
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system:
      let pkgs = nixpkgs.legacyPackages.${system}; in
      {
        defaultPackage = self.packages.${system}.pass-otp;

        packages = {
          pass-otp = pkgs.callPackage ./default.nix { };

          pass-with-otp = pkgs.pass.withExtensions (e: [ self.packages.${system}.pass-otp ]);
        };

        checks.pass-otp = self.defaultPackage.${system};
      }
    );
}