15 stdenv.mkDerivation (finalAttrs: {
19 src = fetchFromGitHub {
22 rev = "v${finalAttrs.version}";
23 hash = "sha256-m9iIF8h6V3wWLUQuPntXtRAh16RrmR3uqZZIljGCY08=";
37 ] ++ lib.optionals stdenv.hostPlatform.isLinux [
41 hardeningDisable = [ "format" ];
46 install -D -t $out/bin/ src/bin/pgcopydb/pgcopydb
52 version = testers.testVersion {
53 package = finalAttrs.finalPackage;
58 description = "Copy a Postgres database to a target Postgres server (pg_dump | pg_restore on steroids";
59 homepage = "https://github.com/dimitri/pgcopydb";
60 changelog = "https://github.com/dimitri/pgcopydb/blob/${finalAttrs.src.rev}/CHANGELOG.md";
61 license = licenses.postgresql;
63 mainProgram = "pgcopydb";
64 platforms = platforms.all;