home
tpb

repository View

flake.nix

At qsvuxuqoqqut · file · 583 bytes

{
  description = "Tee standard input into the system clipboard";

  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";

  outputs = { nixpkgs, ... }:
    let
      systems = [
        "aarch64-darwin"
        "aarch64-linux"
        "x86_64-linux"
      ];
      forAllSystems = nixpkgs.lib.genAttrs systems;
    in
    {
      packages = forAllSystems (system:
        let
          pkgs = nixpkgs.legacyPackages.${system};
          tpb = import ./default.nix { inherit pkgs; };
        in
        {
          inherit tpb;
          default = tpb;
        });
    };
}