aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: ae417d4a7e83117ff60b2e737f9a65c1bd5a42fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  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;
        });
    };
}