Skip to content
Permalink
Browse files

Merge pull request #3 from steve-chavez/master

Add default.nix
  • Loading branch information...
begriffs committed Jan 25, 2019
2 parents 13cec6e + 62151d2 commit 9a401c74423e0da0106da6a05710ac86dcd7c57c
Showing with 8 additions and 0 deletions.
  1. +2 −0 README.md
  2. +6 −0 default.nix
@@ -14,3 +14,5 @@ pg_listen postgres://db-uri channel-name shell-command
### Building

Just clone the repo and run `make`. The makefile is compatible with BSD and GNU Make and requires only that libpq be installed on the system.

If you use NixOS you can run `nix-shell` to build it.
@@ -0,0 +1,6 @@
with import <nixpkgs>{};
stdenv.mkDerivation {
name = "pg_listen";
buildInputs = [ clang pkgconfig libpqxx ];
shellHook = "make && exit";
}

0 comments on commit 9a401c7

Please sign in to comment.
You can’t perform that action at this time.