From bf68556039a81c99205b92827fa1f553e8026dc7 Mon Sep 17 00:00:00 2001
From: Daniel Firth <dan.firth@homotopic.tech>
Date: Sun, 23 Oct 2022 08:11:58 +0100
Subject: [PATCH] postgresql-migration: init at 0.2.1.4

---
 manifest.dhall                |  1 +
 overlay.nix                   |  2 ++
 pkgs/postgresql-migration.nix | 27 +++++++++++++++++++++++++++
 3 files changed, 30 insertions(+)
 create mode 100644 pkgs/postgresql-migration.nix

diff --git a/manifest.dhall b/manifest.dhall
index d71344da..84d9d37d 100644
--- a/manifest.dhall
+++ b/manifest.dhall
@@ -327,6 +327,7 @@ in  [ callHackage "Cabal" "3.8.1.0"
     , callHackage "polysemy-vinyl" "0.1.5.0"
     , callHackage "polysemy-zoo" "0.8.0.0"
     , callHackage "postgresql-libpq" "0.9.4.3"
+    , callHackage "postgresql-migration" "0.2.1.4"
     , callHackage "postgresql-simple" "0.6.4"
     , callHackage "postgresql-simple-migration" "0.1.15.0"
     , callHackage "pretty-simple" "4.1.1.0"
diff --git a/overlay.nix b/overlay.nix
index 7af82499..76792828 100644
--- a/overlay.nix
+++ b/overlay.nix
@@ -393,6 +393,8 @@ final: prev: with pkgs.haskell.lib; {
 
     postgresql-libpq = prev.callPackage (./pkgs/postgresql-libpq.nix) { };
 
+    postgresql-migration = prev.callPackage (./pkgs/postgresql-migration.nix) { };
+
     postgresql-simple = prev.callPackage (./pkgs/postgresql-simple.nix) { };
 
     postgresql-simple-migration = prev.callPackage (./pkgs/postgresql-simple-migration.nix) { };
diff --git a/pkgs/postgresql-migration.nix b/pkgs/postgresql-migration.nix
new file mode 100644
index 00000000..ca4e0317
--- /dev/null
+++ b/pkgs/postgresql-migration.nix
@@ -0,0 +1,27 @@
+{ mkDerivation, base, base64-bytestring, bytestring, cryptohash
+, directory, filepath, hspec, lib, postgresql-simple, text, time
+}:
+mkDerivation {
+  pname = "postgresql-migration";
+  version = "0.2.1.4";
+  sha256 = "1a208648901a320650da06d4bde50caf95560721fd9c7aae005cc647d57b195d";
+  isLibrary = true;
+  isExecutable = true;
+  libraryHaskellDepends = [
+    base base64-bytestring bytestring cryptohash directory filepath
+    postgresql-simple text time
+  ];
+  executableHaskellDepends = [
+    base base64-bytestring bytestring cryptohash directory
+    postgresql-simple text time
+  ];
+  testHaskellDepends = [ base bytestring hspec postgresql-simple ];
+  doHaddock = false;
+  jailbreak = true;
+  doCheck = false;
+  hyperlinkSource = false;
+  homepage = "https://github.com/andrevdm/postgresql-migration";
+  description = "PostgreSQL Schema Migrations";
+  license = lib.licenses.bsd3;
+  mainProgram = "migrate";
+}
\ No newline at end of file
-- 
GitLab