From b529b22eaba3bb4c9a089597f83434f7da5f31c5 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sun, 16 Oct 2022 15:06:17 +0100 Subject: [PATCH] hpack: init at 0.35.0 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/hpack.nix | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 pkgs/hpack.nix diff --git a/manifest.dhall b/manifest.dhall index b031c9ad..70443bb1 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -189,6 +189,7 @@ in [ callHackage "Cabal" "3.8.1.0" "https://github.com/milloni/hnix" (Some "005568ee024eabee129d9cf4ca331c6da260610b") (None Text) + , callHackage "hpack" "0.35.0" , callHackage "hslua-aeson" "2.2.1" , callHackage "hspec" "2.10.3" , callHackage "hspec-core" "2.10.0.1" diff --git a/overlay.nix b/overlay.nix index 9b7b6a02..4d0074cf 100644 --- a/overlay.nix +++ b/overlay.nix @@ -205,6 +205,8 @@ final: prev: with pkgs.haskell.lib; { hourglass = prev.callPackage (./pkgs/hourglass.nix) { }; + hpack = prev.callPackage (./pkgs/hpack.nix) { }; + hslua-aeson = prev.callPackage (./pkgs/hslua-aeson.nix) { }; hspec = prev.callPackage (./pkgs/hspec.nix) { }; diff --git a/pkgs/hpack.nix b/pkgs/hpack.nix new file mode 100644 index 00000000..1fc0a088 --- /dev/null +++ b/pkgs/hpack.nix @@ -0,0 +1,44 @@ +{ mkDerivation, aeson, base, bifunctors, bytestring, Cabal +, containers, cryptonite, deepseq, directory, filepath, Glob, hspec +, hspec-discover, http-client, http-client-tls, http-types, HUnit +, infer-license, interpolate, lib, mockery, pretty, QuickCheck +, scientific, template-haskell, temporary, text, transformers +, unordered-containers, vector, yaml +}: +mkDerivation { + pname = "hpack"; + version = "0.35.0"; + sha256 = "c6bdbc2d48dac398d3c35120a11455f507639f275befc4fda0a26662db2231b2"; + revision = "1"; + editedCabalFile = "1x0rmra2fpfzmhhw090iila2drfdmb1y28ybypmgbi0asa1zl751"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson base bifunctors bytestring Cabal containers cryptonite + deepseq directory filepath Glob http-client http-client-tls + http-types infer-license pretty scientific text transformers + unordered-containers vector yaml + ]; + executableHaskellDepends = [ + aeson base bifunctors bytestring Cabal containers cryptonite + deepseq directory filepath Glob http-client http-client-tls + http-types infer-license pretty scientific text transformers + unordered-containers vector yaml + ]; + testHaskellDepends = [ + aeson base bifunctors bytestring Cabal containers cryptonite + deepseq directory filepath Glob hspec http-client http-client-tls + http-types HUnit infer-license interpolate mockery pretty + QuickCheck scientific template-haskell temporary text transformers + unordered-containers vector yaml + ]; + testToolDepends = [ hspec-discover ]; + doHaddock = false; + jailbreak = true; + doCheck = false; + hyperlinkSource = false; + homepage = "https://github.com/sol/hpack#readme"; + description = "A modern format for Haskell packages"; + license = lib.licenses.mit; + mainProgram = "hpack"; +} \ No newline at end of file -- GitLab