diff --git a/manifest.dhall b/manifest.dhall index d71344dac85e74c92296e31c1fc5956d3b26ab66..84d9d37d314829a6335c09af308cd7c01d6ffd2f 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 7af82499e3944eaf50165b2c73fe3571fa44e42d..76792828de06a71990f32d28bc6325062d05018f 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 0000000000000000000000000000000000000000..ca4e031767e5ef118a7dc36dac649a8554a22954 --- /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