From 190906161db8120a58bdc4a2ac8138c4f3e45823 Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Fri, 19 Apr 2024 00:24:06 +0200 Subject: Add experimental flake.nix --- temp-postgres.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 temp-postgres.nix (limited to 'temp-postgres.nix') diff --git a/temp-postgres.nix b/temp-postgres.nix new file mode 100644 index 0000000..3dc3338 --- /dev/null +++ b/temp-postgres.nix @@ -0,0 +1,23 @@ +{ lib, stdenv, postgresql, makeBinaryWrapper }: +stdenv.mkDerivation rec { + name = "temp-postgres-${version}"; + version = "0.1"; + + src = ./.; + + nativeBuildInputs = [ + makeBinaryWrapper + ]; + + buildInputs = [ + postgresql + ]; + + installPhase = '' + mkdir -p $out/bin + cp temp-postgres.sh $out/bin/temp-postgres + mkdir -p $out/man/man1 + cp temp-postgres.1 $out/man/man1/temp-postgres.1 + wrapProgram $out/bin/temp-postgres --prefix PATH : ${lib.makeBinPath [ postgresql ]} + ''; +} -- cgit v1.2.3