Commit dd2c53cb authored by Bas van Dijk's avatar Bas van Dijk
Browse files

pgmanage: 11.0.1 -> 11.0.1-git-a028604

The last release 11.0.1 from 2018 fails the NixOS test
probably because of PostgreSQL-12 incompatibility.
Fortunately the latest master does succeed the test.
parent ce5a0350
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, postgresql, openssl } :

{ lib, stdenv, fetchFromGitHub, postgresql, openssl, nixosTests } :
let
  # The last release 11.0.1 from 2018 fails the NixOS test
  # probably because of PostgreSQL-12 incompatibility.
  # Fortunately the latest master does succeed the test.
  rev = "a028604416be382d6d310bc68b4e7c3cd16020fb";
in
stdenv.mkDerivation rec {
  pname = "pgmanage";
  version = "11.0.1";
  version = "11.0.1-git-${builtins.substring 0 7 rev}";

  src = fetchFromGitHub {
    owner  = "pgManage";
    repo   = "pgManage";
    rev    = "v${version}";
    sha256 = "1a1dbc32b3y0ph8ydf800h6pz7dg6g1gxgid4gffk7k58xj0c5yf";
    inherit rev;
    sha256 = "sha256-ibCzZrqfbio1wBVFKB6S/wdRxnCc7s3IQdtI9txxhaM=";
  };

  patchPhase = ''
@@ -21,6 +26,8 @@ stdenv.mkDerivation rec {

  buildInputs = [ postgresql openssl ];

  passthru.tests.sign-in = nixosTests.pgmanage;

  meta = with lib; {
    description = "A fast replacement for PGAdmin";
    longDescription = ''