From ab1589f7dd1b646995a61d0f73744a482a3eb440 Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Wed, 19 Oct 2022 21:54:09 +0100 Subject: [PATCH] cursor-dirforest-gen: init at 6ad5b168e26eb4e647df9f007d812aaf59338d40 --- manifest.dhall | 5 +++++ overlay.nix | 2 ++ pkgs/cursor-dirforest-gen.nix | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 pkgs/cursor-dirforest-gen.nix diff --git a/manifest.dhall b/manifest.dhall index 013ab3fa..0164c2ae 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -129,6 +129,11 @@ in [ callHackage "Cabal" "3.8.1.0" "https://github.com/NorfairKing/cursor-dirforest" (Some "6ad5b168e26eb4e647df9f007d812aaf59338d40") (Some "cursor-dirforest-brick") + , callCabal2nix + "cursor-dirforest-gen" + "https://github.com/NorfairKing/cursor-dirforest" + (Some "6ad5b168e26eb4e647df9f007d812aaf59338d40") + (Some "cursor-dirforest-gen") , callHackage "cryptonite" "0.30" , callHackage "cryptohash-sha1" "0.11.101.0" , callHackage "data-fix" "0.3.2" diff --git a/overlay.nix b/overlay.nix index d29d8e20..fd2e9565 100644 --- a/overlay.nix +++ b/overlay.nix @@ -113,6 +113,8 @@ final: prev: with pkgs.haskell.lib; { cursor-dirforest-brick = prev.callPackage (./pkgs/cursor-dirforest-brick.nix) { }; + cursor-dirforest-gen = prev.callPackage (./pkgs/cursor-dirforest-gen.nix) { }; + data-fix = prev.callPackage (./pkgs/data-fix.nix) { }; dec = prev.callPackage (./pkgs/dec.nix) { }; diff --git a/pkgs/cursor-dirforest-gen.nix b/pkgs/cursor-dirforest-gen.nix new file mode 100644 index 00000000..95ad29b2 --- /dev/null +++ b/pkgs/cursor-dirforest-gen.nix @@ -0,0 +1,35 @@ +{ mkDerivation, base, containers, criterion, cursor +, cursor-dirforest, cursor-gen, dirforest, fetchgit, filepath +, genvalidity, genvalidity-containers, genvalidity-criterion +, genvalidity-dirforest, genvalidity-hspec +, genvalidity-hspec-optics, hspec, lib, path, QuickCheck +}: +mkDerivation { + pname = "cursor-dirforest-gen"; + version = "0.0.0.0"; + src = fetchgit { + url = "https://github.com/NorfairKing/cursor-dirforest"; + sha256 = "0miy6chdyi8jjfivcpigyglhlx6x7f676n47vybjnpdhggv0kh2j"; + rev = "6ad5b168e26eb4e647df9f007d812aaf59338d40"; + fetchSubmodules = true; + }; + postUnpack = "sourceRoot+=/cursor-dirforest-gen/; echo source root reset to $sourceRoot"; + libraryHaskellDepends = [ + base containers cursor cursor-dirforest cursor-gen dirforest + filepath genvalidity genvalidity-containers genvalidity-dirforest + path QuickCheck + ]; + testHaskellDepends = [ + base cursor cursor-dirforest cursor-gen dirforest genvalidity-hspec + genvalidity-hspec-optics hspec path QuickCheck + ]; + benchmarkHaskellDepends = [ + base criterion cursor-dirforest genvalidity-criterion QuickCheck + ]; + doHaddock = false; + jailbreak = true; + doCheck = false; + hyperlinkSource = false; + homepage = "https://github.com/NorfairKing/cursor-dirforest#readme"; + license = lib.licenses.mit; +} \ No newline at end of file -- GitLab