summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2024-04-19 00:24:06 +0200
committerStefan Kreutz <mail@skreutz.com>2024-04-19 00:24:06 +0200
commit190906161db8120a58bdc4a2ac8138c4f3e45823 (patch)
tree2266f0f3764365c560339cb68bcbda3c24d6fe94 /flake.nix
parent0c1fea60db8075fe25bf68eb840a56ba9ce41069 (diff)
downloadtemp-postgres-190906161db8120a58bdc4a2ac8138c4f3e45823.tar
Add experimental flake.nix
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..386b141
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,21 @@
+# Derived from https://github.com/ryantm/agenix/blob/1381a759b205dff7a6818733118d02253340fd5e/flake.nix
+
+{
+ description = "A temporary PostgreSQL server";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+ systems.url = "github:nix-systems/default";
+ };
+
+ outputs = { self, nixpkgs, systems }:
+ let
+ eachSystem = nixpkgs.lib.genAttrs (import systems);
+ in {
+ overlays.default = import ./overlay.nix;
+ packages = eachSystem (system: {
+ temp-postgres = nixpkgs.legacyPackages.${system}.callPackage ./temp-postgres.nix {};
+ default = self.packages.${system}.temp-postgres;
+ });
+ };
+}
Generated by cgit. See skreutz.com for my tech blog and contact information.