31 lines
727 B
Nix
31 lines
727 B
Nix
{
|
|
description = "Basic postgresql flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/release-25.05";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
# force subflake dependencies to follow nixpkgs version
|
|
# of parent flake
|
|
# flake-utils.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
...
|
|
}@inputs:
|
|
inputs.flake-utils.lib.eachDefaultSystem (
|
|
system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
packages.postgresql = pkgs.postgresql;
|
|
packages.default = self.packages.${system}.postgresql;
|
|
# nix fmt formatter option attributes
|
|
formatter = pkgs.nixfmt-tree;
|
|
}
|
|
);
|
|
}
|