From 70b7907c4f08a0c0237fc5fea7cc11e19d58dae0 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Sat, 5 Nov 2022 13:15:54 +0000 Subject: [PATCH] cursor-gen: init at 0.4.0.0 --- manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/cursor-gen.nix | 65 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 pkgs/cursor-gen.nix diff --git a/manifest.dhall b/manifest.dhall index 3f22314c..067e7dce 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -165,6 +165,7 @@ in [ callHackage "Cabal" "3.8.1.0" "https://github.com/NorfairKing/cursor-dirforest" (Some "6ad5b168e26eb4e647df9f007d812aaf59338d40") (Some "cursor-dirforest-gen") + , callHackage "cursor-gen" "0.4.0.0" , callHackage "cryptonite" "0.30" , callHackage "cryptohash-sha1" "0.11.101.0" , callHackage "cryptohash" "0.11.9" diff --git a/overlay.nix b/overlay.nix index 6c81846c..e06de10d 100644 --- a/overlay.nix +++ b/overlay.nix @@ -179,6 +179,8 @@ final: prev: with pkgs.haskell.lib; { cursor-dirforest-gen = prev.callPackage (./pkgs/cursor-dirforest-gen.nix) { }; + cursor-gen = prev.callPackage (./pkgs/cursor-gen.nix) { }; + data-fix = prev.callPackage (./pkgs/data-fix.nix) { }; dec = prev.callPackage (./pkgs/dec.nix) { }; diff --git a/pkgs/cursor-gen.nix b/pkgs/cursor-gen.nix new file mode 100644 index 00000000..b0214d56 --- /dev/null +++ b/pkgs/cursor-gen.nix @@ -0,0 +1,65 @@ +{ mkDerivation +, base +, containers +, criterion +, cursor +, genvalidity +, genvalidity-containers +, genvalidity-criterion +, genvalidity-hspec +, genvalidity-hspec-optics +, genvalidity-text +, hspec +, lib +, microlens +, pretty-show +, QuickCheck +, text +}: +mkDerivation { + pname = "cursor-gen"; + version = "0.4.0.0"; + sha256 = "ba70fbc680f7568e4a71a6f34230d573aaf524d3e8dc1c28af1f3530fa0ca9a8"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + base + containers + cursor + genvalidity + genvalidity-containers + genvalidity-text + QuickCheck + text + ]; + testHaskellDepends = [ + base + containers + cursor + genvalidity-hspec + genvalidity-hspec-optics + hspec + microlens + pretty-show + QuickCheck + text + ]; + benchmarkHaskellDepends = [ + base + criterion + cursor + genvalidity-criterion + ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + homepage = "https://github.com/NorfairKing/cursor"; + description = "Generators for Purely Functional Cursors"; + license = lib.licenses.mit; + broken = false; +} -- GitLab