diff options
Diffstat (limited to 'nixpkgs/pkgs/development/perl-modules/DBD-Pg/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/perl-modules/DBD-Pg/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/perl-modules/DBD-Pg/default.nix b/nixpkgs/pkgs/development/perl-modules/DBD-Pg/default.nix new file mode 100644 index 000000000000..339791215385 --- /dev/null +++ b/nixpkgs/pkgs/development/perl-modules/DBD-Pg/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl, buildPerlPackage, DBI, postgresql }: + +buildPerlPackage { + pname = "DBD-Pg"; + version = "3.7.4"; + + src = fetchurl { + url = "mirror://cpan/authors/id/T/TU/TURNSTEP/DBD-Pg-3.7.4.tar.gz"; + sha256 = "0gkqlvbmzbdm0g4k328nlkjdg3wrjm5i2n9jxj1i8sqxkm79rylz"; + }; + + buildInputs = [ postgresql ]; + propagatedBuildInputs = [ DBI ]; + + makeMakerFlags = "POSTGRES_HOME=${postgresql}"; + + # tests freeze in a sandbox + doCheck = false; + + meta = { + description = "DBI PostgreSQL interface"; + license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; + platforms = stdenv.lib.platforms.unix; + }; +} |