From ed1db143747b8cdef4c7da48ba9f439976ac7d13 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Wed, 11 Jan 2023 13:51:41 +0000 Subject: [PATCH] beam-core: init at github:haskell-beam/beam/94461937c5ca8b89f1ff1a60bde5bffe207315b4 --- horizon.dhall | 1 + initial-packages.nix | 2 ++ pkgs/beam-core.nix | 75 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 pkgs/beam-core.nix diff --git a/horizon.dhall b/horizon.dhall index b741249f..29cb3523 100644 --- a/horizon.dhall +++ b/horizon.dhall @@ -130,6 +130,7 @@ let packages = , base64 = H.callHackage "base64" "0.4.2.4" , 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" , 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 7276d858..8019ab3a 100644 --- a/initial-packages.nix +++ b/initial-packages.nix @@ -155,6 +155,8 @@ self: with pkgs.haskell.lib; { basement = self.callPackage (./pkgs/basement.nix) { }; + beam-core = self.callPackage (./pkgs/beam-core.nix) { }; + bech32 = self.callPackage (./pkgs/bech32.nix) { }; bech32-th = self.callPackage (./pkgs/bech32-th.nix) { }; diff --git a/pkgs/beam-core.nix b/pkgs/beam-core.nix new file mode 100644 index 00000000..716a1f81 --- /dev/null +++ b/pkgs/beam-core.nix @@ -0,0 +1,75 @@ +{ mkDerivation +, aeson +, base +, bytestring +, containers +, dlist +, fetchgit +, free +, ghc-prim +, hashable +, lib +, microlens +, mtl +, network-uri +, scientific +, tagged +, tasty +, tasty-hunit +, text +, time +, vector +, vector-sized +}: +mkDerivation { + pname = "beam-core"; + version = "0.10.0.0"; + src = fetchgit { + url = "https://github.com/haskell-beam/beam"; + sha256 = "05yvc8hw0b2f8dg8lz8w1a2y90pwi10iwqa0b2xjhrlacwi0fci9"; + rev = "94461937c5ca8b89f1ff1a60bde5bffe207315b4"; + fetchSubmodules = true; + }; + postUnpack = "sourceRoot+=/beam-core/; echo source root reset to $sourceRoot"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + aeson + base + bytestring + containers + dlist + free + ghc-prim + hashable + microlens + mtl + network-uri + scientific + tagged + text + time + vector + vector-sized + ]; + testHaskellDepends = [ + base + bytestring + tasty + tasty-hunit + text + time + ]; + enableLibraryProfiling = true; + enableExecutableProfiling = true; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "http://travis.athougies.net/projects/beam.html"; + description = "Type-safe, feature-complete SQL query and manipulation interface for Haskell"; + license = lib.licenses.mit; + broken = false; +} -- GitLab