summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 84c92b912fdd1e012d53692c9eddbc4402712ea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  description = "A utility to run the PostgreSQL server off a temporary data directory";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system:
      let pkgs = nixpkgs.legacyPackages.${system};
      in {
        overlays.default = import ./overlay.nix;
        packages = {
          temp-postgres = pkgs.callPackage ./temp-postgres.nix {};
          default = self.packages.${system}.temp-postgres;
        };
      }
    );
}
Generated by cgit. See skreutz.com for my tech blog and contact information.