Unverified Commit d8e39e73 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #234424 from basvandijk/upgrade-pgmanage-to-fix-nixos-test

pgmanage: 11.0.1 -> unstable-2022-05-11
parents dbfcf5c9 8195adcf
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, postgresql, openssl } :

{ lib, stdenv, fetchFromGitHub, postgresql, openssl, nixosTests } :
stdenv.mkDerivation rec {
  pname = "pgmanage";
  version = "11.0.1";
  # 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.
  version = "unstable-2022-05-11";

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

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

  buildInputs = [ postgresql openssl ];

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

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