diff --git a/horizon.dhall b/horizon.dhall index 29cb3523402b525068f07ef061dee6ca3f41f3b6..5d6d1aca5b011bdd1e4fbdb346ffa0dc45cf5ea7 100644 --- a/horizon.dhall +++ b/horizon.dhall @@ -131,6 +131,7 @@ let packages = , base-compat = H.callHackage "base-compat" "0.12.2" , base-compat-batteries = H.callHackage "base-compat-batteries" "0.12.2" , beam-core = callGitBeam "beam-core" + , beam-migrate = callGitBeam "beam-migrate" , bech32 = H.callHackage "bech32" "1.1.2" , bech32-th = H.callHackage "bech32-th" "1.1.1" , bifunctors = H.callHackage "bifunctors" "5.5.13" diff --git a/initial-packages.nix b/initial-packages.nix index 8019ab3ac074e06daa1cb5651c84b20f30867e84..8336791acd06d871f3fcee839da1421ee0f60bdd 100644 --- a/initial-packages.nix +++ b/initial-packages.nix @@ -157,6 +157,8 @@ self: with pkgs.haskell.lib; { beam-core = self.callPackage (./pkgs/beam-core.nix) { }; + beam-migrate = self.callPackage (./pkgs/beam-migrate.nix) { }; + bech32 = self.callPackage (./pkgs/bech32.nix) { }; bech32-th = self.callPackage (./pkgs/bech32-th.nix) { }; diff --git a/pkgs/beam-migrate.nix b/pkgs/beam-migrate.nix new file mode 100644 index 0000000000000000000000000000000000000000..5c84ae45b2c76cee71b51104047b5316f949c4bf --- /dev/null +++ b/pkgs/beam-migrate.nix @@ -0,0 +1,77 @@ +{ mkDerivation +, aeson +, base +, beam-core +, bytestring +, containers +, deepseq +, dependent-map +, dependent-sum +, fetchgit +, free +, ghc-prim +, hashable +, haskell-src-exts +, lib +, microlens +, mtl +, parallel +, pqueue +, pretty +, scientific +, text +, time +, unordered-containers +, uuid-types +, vector +}: +mkDerivation { + pname = "beam-migrate"; + version = "0.5.2.0"; + src = fetchgit { + url = "https://github.com/haskell-beam/beam"; + sha256 = "05yvc8hw0b2f8dg8lz8w1a2y90pwi10iwqa0b2xjhrlacwi0fci9"; + rev = "94461937c5ca8b89f1ff1a60bde5bffe207315b4"; + fetchSubmodules = true; + }; + postUnpack = "sourceRoot+=/beam-migrate/; echo source root reset to $sourceRoot"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + aeson + base + beam-core + bytestring + containers + deepseq + dependent-map + dependent-sum + free + ghc-prim + hashable + haskell-src-exts + microlens + mtl + parallel + pqueue + pretty + scientific + text + time + unordered-containers + uuid-types + vector + ]; + enableLibraryProfiling = true; + enableExecutableProfiling = true; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "https://travis.athougies.net/projects/beam.html"; + description = "SQL DDL support and migrations support library for Beam"; + license = lib.licenses.mit; + broken = false; +}