mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
b2f53c76f8
In this change composableDerivation is removed in favor of stdenv.mkDerivation.
27 lines
646 B
Nix
27 lines
646 B
Nix
import ./make-test.nix ({ pkgs, ...} : {
|
|
name = "postgis";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ lsix ];
|
|
};
|
|
|
|
nodes = {
|
|
master =
|
|
{ pkgs, config, ... }:
|
|
|
|
{
|
|
services.postgresql = let mypg = pkgs.postgresql100; in {
|
|
enable = true;
|
|
package = mypg;
|
|
extraPlugins = [ (pkgs.postgis.override { postgresql = mypg; }) ];
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
startAll;
|
|
$master->waitForUnit("postgresql");
|
|
$master->sleep(10); # Hopefully this is long enough!!
|
|
$master->succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis;'");
|
|
'';
|
|
})
|