From dd9e3fce447e3821d6361337648d34badbeae797 Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Wed, 4 Nov 2020 02:16:17 +1000 Subject: [PATCH 1/8] Bump haskell.nix --- nix/sources.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/sources.json b/nix/sources.json index 46b09222de2..ae8e8f5334d 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -17,10 +17,10 @@ "homepage": "https://input-output-hk.github.io/haskell.nix", "owner": "input-output-hk", "repo": "haskell.nix", - "rev": "b12905981daa8f398e0847e148904955986404b8", - "sha256": "0n2im8v5szmbmjrgxrd0aid6hciscj517dk8nd5gsidfx0ys98ai", + "rev": "4b8e94f837b22eaa7557f27c02034de38d5b3948", + "sha256": "0h25z5f74c50pin8wyvhl54s5y157khvbbs9j2j2x6ghhp1prr4j", "type": "tarball", - "url": "https://github.com/input-output-hk/haskell.nix/archive/b12905981daa8f398e0847e148904955986404b8.tar.gz", + "url": "https://github.com/input-output-hk/haskell.nix/archive/4b8e94f837b22eaa7557f27c02034de38d5b3948.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "iohk-nix": { From 80b5be7370e519d578c8cef00855a5bed430defd Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Wed, 21 Oct 2020 12:31:50 +1000 Subject: [PATCH 2/8] Update .envrc with fallbacks --- .envrc | 13 ++++++++++++- .gitignore | 3 +++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.envrc b/.envrc index 051d09d292a..06f176d5598 100644 --- a/.envrc +++ b/.envrc @@ -1 +1,12 @@ -eval "$(lorri direnv)" +if [ -e .envrc-local ]; then + # Source a user-specific config in ./.envrc-local + source .envrc-local +elif type lorri &>/dev/null; then + eval "$(lorri direnv)" +else + # Fall back to using direnv's builtin nix support + # to prevent bootstrapping problems. + # It's definitely better to use lorri, because direnv won't + # be fast like this. + use nix +fi diff --git a/.gitignore b/.gitignore index 1b8da7efc30..f0e8cde72a8 100644 --- a/.gitignore +++ b/.gitignore @@ -29,5 +29,8 @@ cabal.sandbox.config result* .stack-to-nix.cache +### Direnv ### +.envrc-local + ### auto-generated faulty JSON golden tests ### *.faulty.json From e2c88b7100734e7712269b3d5a7d0a6a5ae8ea77 Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Wed, 21 Oct 2020 14:33:53 +1000 Subject: [PATCH 3/8] nix-shell: add materialized haskell build tools --- .gitattributes | 4 +- cabal-nix.project | 11 ++++- default.nix | 55 +-------------------- nix/hls.nix | 32 ------------- shell.nix | 120 ++++++++++++++++++++++++++++++++++++++++++---- 5 files changed, 124 insertions(+), 98 deletions(-) delete mode 100644 nix/hls.nix diff --git a/.gitattributes b/.gitattributes index 45360445b5e..7d53a57cd89 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,7 +2,9 @@ # - influences how files are shown in the GitHub diff view # Hide stuff that is generated by nix-tools stack-to-nix -nix/.stack.nix/*.nix linguist-generated=true merge=union +nix/.stack.nix/*.nix linguist-generated=true merge=binary +nix/materialized/*/*.nix linguist-generated=true merge=binary +nix/materialized/*/.plan.nix/*.nix linguist-generated=true merge=binary # Hide niv boilerplate nix/sources.nix linguist-generated=true diff --git a/cabal-nix.project b/cabal-nix.project index 1d8913b4f6a..69595a5f93f 100644 --- a/cabal-nix.project +++ b/cabal-nix.project @@ -14,11 +14,18 @@ -- -- The Haskell package set is automatically generated from stack.yaml. -- --- To build, run "nix-shell", then: +-- To build, start "nix-shell", then run Cabal inside: +-- nix-shell +-- cabal build --project-file=cabal-nix.project all -- --- cabal build --project-file=cabal-nix.project --enable-tests --enable-benchmarks all +-- To build with profiling enabled, use: +-- nix-shell --arg profiling true +-- cabal build --project-file=cabal-nix.project all --enable-profiling -- -------------------------------------------------------------------------------- packages: lib/*/*.cabal + +tests: True +benchmarks: True diff --git a/default.nix b/default.nix index 6bbf1a2b594..034800bcc6d 100644 --- a/default.nix +++ b/default.nix @@ -73,57 +73,6 @@ let getPackageChecks = mapAttrs (_: package: package.checks); - # Creates a development environment for Cabal builds or ghci - # sessions, with various build tools included. - mkShell = name: hp: hp.shellFor { - inherit name; - packages = ps: attrValues (selectProjectPackages ps); - buildInputs = (with self; [ - jormungandr - jormungandr-cli - cardano-node - cardano-cli - cardano-address - cardano-tx - bech32 - ]) ++ (with pkgs; [ - niv - pkgconfig - python3Packages.openapi-spec-validator - ruby - sqlite-interactive - yq - ]); - tools = { - cabal = "3.2.0.0"; - ghcid = "0.8.7"; - hlint = "3.2"; - lentil = "1.3.2.0"; - stylish-haskell = "0.11.0.3"; - weeder = "1.0.9"; - }; - CARDANO_NODE_CONFIGS = cardano-node.deployments; - meta.platforms = lib.platforms.unix; - shellHook = '' - setup_completion() { - local p - for p in $buildInputs; do - if [ -d "$p/share/bash-completion" ]; then - addToSearchPath XDG_DATA_DIRS "$p/share" - fi - done - } - setup_completion - ''; - }; - - # FIXME: This is causing issue in CI, as described here: https://github.com/input-output-hk/haskell.nix/issues/884 - # - # # Build latest release of haskell-language-server from github - # hls = pkgs.callPackages ./nix/hls.nix { - # compiler-nix-name = haskellPackages._config.compiler.nix-name; - # }; - self = { inherit pkgs commonLib src haskellPackages profiledHaskellPackages coveredHaskellPackages; # Jormungandr @@ -168,8 +117,8 @@ let shelley = self.cardano-wallet; }); - shell = mkShell "cardano-wallet-shell" haskellPackages; - shell-prof = mkShell "cardano-wallet-shell-profiled" profiledHaskellPackages; + shell = import ./shell.nix { inherit pkgs; walletPackages = self; }; + shell-prof = import ./shell.nix { inherit pkgs; walletPackages = self; profiling = true; }; cabalShell = import ./nix/cabal-shell.nix { inherit pkgs; walletPackages = self; }; stackShell = import ./nix/stack-shell.nix { inherit pkgs; walletPackages = self; }; diff --git a/nix/hls.nix b/nix/hls.nix deleted file mode 100644 index 12910f257a7..00000000000 --- a/nix/hls.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ haskell-nix, fetchFromGitHub, compiler-nix-name }: - -let - hlsPkgs = haskell-nix.cabalProject { - src = fetchFromGitHub { - name = "haskell-language-server"; - owner = "haskell"; - repo = "haskell-language-server"; - rev = "0.5.0"; - sha256 = "0vkh5ff6l5wr4450xmbki3cfhlwf041fjaalnwmj7zskd72s9p7p"; - fetchSubmodules = true; - }; - - # Fix source info of brittany dep - lookupSha256 = { location, tag, ... } : { - "https://github.com/bubba/brittany.git"."c59655f10d5ad295c2481537fc8abf0a297d9d1c" = "1rkk09f8750qykrmkqfqbh44dbx1p8aq1caznxxlw8zqfvx39cxl"; - }."${location}"."${tag}"; - - # Use same GHC as the project - inherit compiler-nix-name; - - # # Materialization voodoo (disabled for now). - # inherit index-state checkMaterialization; - # Invalidate and update if you change the version - # plan-sha256 = "144p19wpydc6c56f0zw5b7c17151n0cghimr9wd8rlhifymmky2h"; - }; - -in - { - inherit (hlsPkgs.haskell-language-server.components.exes) haskell-language-server; - inherit (hlsPkgs.hie-bios.components.exes) hie-bios; - } diff --git a/shell.nix b/shell.nix index 98e9cb38a96..e04085414eb 100644 --- a/shell.nix +++ b/shell.nix @@ -1,16 +1,116 @@ -# This file is used by nix-shell. -# It just plucks the "shell" attribute from default.nix. -# See that file for more info. +###################################################################### # -# If you want Haskell dependencies built with profiling, then use: -# nix-shell --arg profiling true -{ profiling ? false -, sourcesOverride ? {} # see sourcesOverride in nix/default.nix +# Creates a development environment for Cabal builds or ghci sessions, +# with various build tools included. +# +# Short instructions are in ./cabal-nix.project. +# +# Full instructions - https://github.com/input-output-hk/cardano-wallet/wiki/Building#cabalnix-build +# +# If you need a nix-shell with Cabal, GHC, and system dependencies, but *without* +# Haskell dependencies, see ./nix/cabal-shell.nix. +# +###################################################################### + +{ walletPackages ? import ./default.nix { inherit sourcesOverride; } +, pkgs ? walletPackages.pkgs +, profiling ? false # enable profiling in haskell dependencies +, sourcesOverride ? {} # see sourcesOverride in nix/default.nix +, checkMaterialization ? false # Use when updating tools }: +with pkgs.lib; +with pkgs.haskell-nix.haskellLib; + let - cardanoWallet = import ./default.nix { inherit sourcesOverride; }; + mkShell = name: hp: hp.shellFor rec { + inherit name; + packages = ps: attrValues (selectProjectPackages ps); + buildInputs = (with walletPackages; [ + jormungandr + jormungandr-cli + cardano-node + cardano-cli + cardano-address + cardano-tx + bech32 + ]) ++ (with pkgs; [ + niv + pkgconfig + python3Packages.openapi-spec-validator + ruby + sqlite-interactive + yq + ]); + tools = let + # NOTE: Updating versions + # + # You will need to increase index-state and + # "niv update haskell.nix" to get recent Hackage packages. + # + # Modify the version number, then run: + # nix-shell --arg checkMaterialization true + index-state = "2020-10-20T00:00:00Z"; + mkTool = name: args: { + inherit index-state checkMaterialization; + } // (if checkMaterialization then builtins.removeAttrs args ["plan-sha256"] else args); + in mapAttrs mkTool { + cabal = { + version = "3.2.0.0"; + plan-sha256 = "0ik4ws852dk7wchbhc84w5ac149myvc1az7rxapfy0hdmiiwjh2j"; + materialized = ./nix/materialized/cabal; + }; + ghcid = { + version = "0.8.7"; + plan-sha256 = "1qqhwx1xkqllfbmiwcwfknx9595l10173rni0gfdwm9bax69j7ik"; + materialized = ./nix/materialized/ghcid; + }; + haskell-language-server = { + version = "0.5.1"; + plan-sha256 = "1iz60r763ksarr222lcd7rx3rh2lv8ascqsjw7wf54bgrl3c0nhw"; + materialized = ./nix/materialized/haskell-language-server; + }; + hoogle = { + version = "5.0.18"; + plan-sha256 = "1qsbmh7yxswj3wcjv6hvln67bkh87c1nn53ij44n89cj8l5apzss"; + materialized = ./nix/materialized/hoogle; + }; + hlint = { + version = "3.2"; + plan-sha256 = "0qjj9a98j3wj3ar0zsmdqsydnnl6bj82xf0f087nrx3x0c6d7jzl"; + materialized = ./nix/materialized/hlint; + }; + lentil = { + version = "1.3.2.0"; + plan-sha256 = "08vs2h03n5p9lkkmfx5anqgn2fbx2a3cs23p74bn2kl61fqhkb88"; + materialized = ./nix/materialized/lentil; + }; + stylish-haskell = { + version = "0.11.0.3"; + plan-sha256 = "0sys32gfz5hxavwgvv55cc8fwfrw3n8244gvsz49vv7d845fkq66"; + materialized = ./nix/materialized/stylish-haskell; + }; + weeder = { + version = "1.0.9"; + plan-sha256 = "0b2sv30jyh0xh3cqi31mc6nzv9p8496s8q2r7dpw7r95mbrlw0dx"; + materialized = ./nix/materialized/weeder; + }; + }; + CARDANO_NODE_CONFIGS = walletPackages.cardano-node.deployments; + meta.platforms = platforms.unix; + shellHook = '' + setup_completion() { + local p + for p in $buildInputs; do + if [ -d "$p/share/bash-completion" ]; then + addToSearchPath XDG_DATA_DIRS "$p/share" + fi + done + } + setup_completion + ''; + }; in if profiling - then cardanoWallet.shell-prof - else cardanoWallet.shell + then mkShell "cardano-wallet-shell-profiled" walletPackages.profiledHaskellPackages + else mkShell "cardano-wallet-shell" walletPackages.haskellPackages From 6b4f5cf8e51e872ec467c12e07f26536d6b9319e Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Wed, 21 Oct 2020 15:54:54 +1000 Subject: [PATCH 4/8] Commit materialized haskell tools builds --- .../cabal/.plan.nix/cabal-install.nix | 340 ++++++++++++++ nix/materialized/cabal/default.nix | 124 ++++++ nix/materialized/ghcid/.plan.nix/ghcid.nix | 130 ++++++ nix/materialized/ghcid/default.nix | 129 ++++++ .../.plan.nix/brittany.nix | 211 +++++++++ .../.plan.nix/ghcide.nix | 308 +++++++++++++ .../.plan.nix/haskell-language-server.nix | 272 ++++++++++++ .../.plan.nix/hls-plugin-api.nix | 66 +++ .../haskell-language-server/default.nix | 415 ++++++++++++++++++ nix/materialized/hlint/.plan.nix/hlint.nix | 158 +++++++ nix/materialized/hlint/default.nix | 198 +++++++++ nix/materialized/hoogle/.plan.nix/hoogle.nix | 135 ++++++ nix/materialized/hoogle/default.nix | 290 ++++++++++++ nix/materialized/lentil/.plan.nix/lentil.nix | 163 +++++++ nix/materialized/lentil/default.nix | 140 ++++++ .../.plan.nix/stylish-haskell.nix | 168 +++++++ nix/materialized/stylish-haskell/default.nix | 163 +++++++ nix/materialized/weeder/.plan.nix/weeder.nix | 79 ++++ nix/materialized/weeder/default.nix | 162 +++++++ 19 files changed, 3651 insertions(+) create mode 100644 nix/materialized/cabal/.plan.nix/cabal-install.nix create mode 100644 nix/materialized/cabal/default.nix create mode 100644 nix/materialized/ghcid/.plan.nix/ghcid.nix create mode 100644 nix/materialized/ghcid/default.nix create mode 100644 nix/materialized/haskell-language-server/.plan.nix/brittany.nix create mode 100644 nix/materialized/haskell-language-server/.plan.nix/ghcide.nix create mode 100644 nix/materialized/haskell-language-server/.plan.nix/haskell-language-server.nix create mode 100644 nix/materialized/haskell-language-server/.plan.nix/hls-plugin-api.nix create mode 100644 nix/materialized/haskell-language-server/default.nix create mode 100644 nix/materialized/hlint/.plan.nix/hlint.nix create mode 100644 nix/materialized/hlint/default.nix create mode 100644 nix/materialized/hoogle/.plan.nix/hoogle.nix create mode 100644 nix/materialized/hoogle/default.nix create mode 100644 nix/materialized/lentil/.plan.nix/lentil.nix create mode 100644 nix/materialized/lentil/default.nix create mode 100644 nix/materialized/stylish-haskell/.plan.nix/stylish-haskell.nix create mode 100644 nix/materialized/stylish-haskell/default.nix create mode 100644 nix/materialized/weeder/.plan.nix/weeder.nix create mode 100644 nix/materialized/weeder/default.nix diff --git a/nix/materialized/cabal/.plan.nix/cabal-install.nix b/nix/materialized/cabal/.plan.nix/cabal-install.nix new file mode 100644 index 00000000000..db9072971c8 --- /dev/null +++ b/nix/materialized/cabal/.plan.nix/cabal-install.nix @@ -0,0 +1,340 @@ +{ system + , compiler + , flags + , pkgs + , hsPkgs + , pkgconfPkgs + , errorHandler + , config + , ... }: + { + flags = { + native-dns = true; + debug-expensive-assertions = false; + debug-conflict-sets = false; + debug-tracetree = false; + lukko = true; + }; + package = { + specVersion = "1.10"; + identifier = { name = "cabal-install"; version = "3.2.0.0"; }; + license = "BSD-3-Clause"; + copyright = "2003-2020, Cabal Development Team"; + maintainer = "Cabal Development Team "; + author = "Cabal Development Team (see AUTHORS file)"; + homepage = "http://www.haskell.org/cabal/"; + url = ""; + synopsis = "The command-line interface for Cabal and Hackage."; + description = "The \\'cabal\\' command-line program simplifies the process of managing\nHaskell software by automating the fetching, configuration, compilation\nand installation of Haskell libraries and programs."; + buildType = "Custom"; + isLocal = true; + setup-depends = [ + (hsPkgs.buildPackages.Cabal or (pkgs.buildPackages.Cabal or (errorHandler.buildToolDepError "Cabal"))) + (hsPkgs.buildPackages.base or (pkgs.buildPackages.base or (errorHandler.buildToolDepError "base"))) + (hsPkgs.buildPackages.process or (pkgs.buildPackages.process or (errorHandler.buildToolDepError "process"))) + (hsPkgs.buildPackages.filepath or (pkgs.buildPackages.filepath or (errorHandler.buildToolDepError "filepath"))) + ]; + detailLevel = "FullDetails"; + licenseFiles = [ "LICENSE" ]; + dataDir = ""; + dataFiles = []; + extraSrcFiles = [ + "README.md" + "bash-completion/cabal" + "bootstrap.sh" + "changelog" + "tests/IntegrationTests2/build/keep-going/cabal.project" + "tests/IntegrationTests2/build/keep-going/p/P.hs" + "tests/IntegrationTests2/build/keep-going/p/p.cabal" + "tests/IntegrationTests2/build/keep-going/q/Q.hs" + "tests/IntegrationTests2/build/keep-going/q/q.cabal" + "tests/IntegrationTests2/build/local-tarball/cabal.project" + "tests/IntegrationTests2/build/local-tarball/q/Q.hs" + "tests/IntegrationTests2/build/local-tarball/q/q.cabal" + "tests/IntegrationTests2/build/setup-custom1/A.hs" + "tests/IntegrationTests2/build/setup-custom1/Setup.hs" + "tests/IntegrationTests2/build/setup-custom1/a.cabal" + "tests/IntegrationTests2/build/setup-custom2/A.hs" + "tests/IntegrationTests2/build/setup-custom2/Setup.hs" + "tests/IntegrationTests2/build/setup-custom2/a.cabal" + "tests/IntegrationTests2/build/setup-simple/A.hs" + "tests/IntegrationTests2/build/setup-simple/Setup.hs" + "tests/IntegrationTests2/build/setup-simple/a.cabal" + "tests/IntegrationTests2/exception/bad-config/cabal.project" + "tests/IntegrationTests2/exception/build/Main.hs" + "tests/IntegrationTests2/exception/build/a.cabal" + "tests/IntegrationTests2/exception/configure/a.cabal" + "tests/IntegrationTests2/exception/no-pkg/empty.in" + "tests/IntegrationTests2/exception/no-pkg2/cabal.project" + "tests/IntegrationTests2/regression/3324/cabal.project" + "tests/IntegrationTests2/regression/3324/p/P.hs" + "tests/IntegrationTests2/regression/3324/p/p.cabal" + "tests/IntegrationTests2/regression/3324/q/Q.hs" + "tests/IntegrationTests2/regression/3324/q/q.cabal" + "tests/IntegrationTests2/targets/all-disabled/cabal.project" + "tests/IntegrationTests2/targets/all-disabled/p.cabal" + "tests/IntegrationTests2/targets/benchmarks-disabled/cabal.project" + "tests/IntegrationTests2/targets/benchmarks-disabled/p.cabal" + "tests/IntegrationTests2/targets/benchmarks-disabled/q/q.cabal" + "tests/IntegrationTests2/targets/complex/cabal.project" + "tests/IntegrationTests2/targets/complex/q/Q.hs" + "tests/IntegrationTests2/targets/complex/q/q.cabal" + "tests/IntegrationTests2/targets/empty-pkg/cabal.project" + "tests/IntegrationTests2/targets/empty-pkg/p.cabal" + "tests/IntegrationTests2/targets/empty/cabal.project" + "tests/IntegrationTests2/targets/empty/foo.hs" + "tests/IntegrationTests2/targets/exes-disabled/cabal.project" + "tests/IntegrationTests2/targets/exes-disabled/p/p.cabal" + "tests/IntegrationTests2/targets/exes-disabled/q/q.cabal" + "tests/IntegrationTests2/targets/lib-only/p.cabal" + "tests/IntegrationTests2/targets/libs-disabled/cabal.project" + "tests/IntegrationTests2/targets/libs-disabled/p/p.cabal" + "tests/IntegrationTests2/targets/libs-disabled/q/q.cabal" + "tests/IntegrationTests2/targets/multiple-exes/cabal.project" + "tests/IntegrationTests2/targets/multiple-exes/p.cabal" + "tests/IntegrationTests2/targets/multiple-libs/cabal.project" + "tests/IntegrationTests2/targets/multiple-libs/p/p.cabal" + "tests/IntegrationTests2/targets/multiple-libs/q/q.cabal" + "tests/IntegrationTests2/targets/multiple-tests/cabal.project" + "tests/IntegrationTests2/targets/multiple-tests/p.cabal" + "tests/IntegrationTests2/targets/simple/P.hs" + "tests/IntegrationTests2/targets/simple/cabal.project" + "tests/IntegrationTests2/targets/simple/p.cabal" + "tests/IntegrationTests2/targets/simple/q/QQ.hs" + "tests/IntegrationTests2/targets/simple/q/q.cabal" + "tests/IntegrationTests2/targets/test-only/p.cabal" + "tests/IntegrationTests2/targets/tests-disabled/cabal.project" + "tests/IntegrationTests2/targets/tests-disabled/p.cabal" + "tests/IntegrationTests2/targets/tests-disabled/q/q.cabal" + "tests/IntegrationTests2/targets/variety/cabal.project" + "tests/IntegrationTests2/targets/variety/p.cabal" + "tests/IntegrationTests2/build/local-tarball/p-0.1.tar.gz" + ]; + extraTmpFiles = []; + extraDocFiles = []; + }; + components = { + exes = { + "cabal" = { + depends = ((((([ + (hsPkgs."async" or (errorHandler.buildDepError "async")) + (hsPkgs."array" or (errorHandler.buildDepError "array")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."base16-bytestring" or (errorHandler.buildDepError "base16-bytestring")) + (hsPkgs."binary" or (errorHandler.buildDepError "binary")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."Cabal" or (errorHandler.buildDepError "Cabal")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."cryptohash-sha256" or (errorHandler.buildDepError "cryptohash-sha256")) + (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."echo" or (errorHandler.buildDepError "echo")) + (hsPkgs."edit-distance" or (errorHandler.buildDepError "edit-distance")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."hashable" or (errorHandler.buildDepError "hashable")) + (hsPkgs."HTTP" or (errorHandler.buildDepError "HTTP")) + (hsPkgs."mtl" or (errorHandler.buildDepError "mtl")) + (hsPkgs."network-uri" or (errorHandler.buildDepError "network-uri")) + (hsPkgs."network" or (errorHandler.buildDepError "network")) + (hsPkgs."pretty" or (errorHandler.buildDepError "pretty")) + (hsPkgs."process" or (errorHandler.buildDepError "process")) + (hsPkgs."random" or (errorHandler.buildDepError "random")) + (hsPkgs."stm" or (errorHandler.buildDepError "stm")) + (hsPkgs."tar" or (errorHandler.buildDepError "tar")) + (hsPkgs."time" or (errorHandler.buildDepError "time")) + (hsPkgs."transformers" or (errorHandler.buildDepError "transformers")) + (hsPkgs."zlib" or (errorHandler.buildDepError "zlib")) + (hsPkgs."hackage-security" or (errorHandler.buildDepError "hackage-security")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."parsec" or (errorHandler.buildDepError "parsec")) + ] ++ (pkgs.lib).optionals (!(compiler.isGhc && (compiler.version).ge "8.0")) [ + (hsPkgs."fail" or (errorHandler.buildDepError "fail")) + (hsPkgs."semigroups" or (errorHandler.buildDepError "semigroups")) + ]) ++ (pkgs.lib).optionals (flags.native-dns) (if system.isWindows + then [ (hsPkgs."windns" or (errorHandler.buildDepError "windns")) ] + else [ + (hsPkgs."resolv" or (errorHandler.buildDepError "resolv")) + ])) ++ (if system.isWindows + then [ (hsPkgs."Win32" or (errorHandler.buildDepError "Win32")) ] + else [ + (hsPkgs."unix" or (errorHandler.buildDepError "unix")) + ])) ++ (if flags.lukko + then [ (hsPkgs."lukko" or (errorHandler.buildDepError "lukko")) ] + else [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + ])) ++ (pkgs.lib).optional (flags.debug-conflict-sets) (hsPkgs."base" or (errorHandler.buildDepError "base"))) ++ (pkgs.lib).optional (flags.debug-tracetree) (hsPkgs."tracetree" or (errorHandler.buildDepError "tracetree")); + libs = (pkgs.lib).optional (system.isAix) (pkgs."bsd" or (errorHandler.sysDepError "bsd")); + buildable = true; + modules = [ + "Distribution/Deprecated/ParseUtils" + "Distribution/Deprecated/ReadP" + "Distribution/Deprecated/Text" + "Distribution/Deprecated/ViewAsFieldDescr" + "Distribution/Client/BuildReports/Anonymous" + "Distribution/Client/BuildReports/Storage" + "Distribution/Client/BuildReports/Types" + "Distribution/Client/BuildReports/Upload" + "Distribution/Client/Check" + "Distribution/Client/CmdBench" + "Distribution/Client/CmdBuild" + "Distribution/Client/CmdClean" + "Distribution/Client/CmdConfigure" + "Distribution/Client/CmdUpdate" + "Distribution/Client/CmdErrorMessages" + "Distribution/Client/CmdExec" + "Distribution/Client/CmdFreeze" + "Distribution/Client/CmdHaddock" + "Distribution/Client/CmdInstall" + "Distribution/Client/CmdInstall/ClientInstallFlags" + "Distribution/Client/CmdRepl" + "Distribution/Client/CmdRun" + "Distribution/Client/CmdRun/ClientRunFlags" + "Distribution/Client/CmdTest" + "Distribution/Client/CmdLegacy" + "Distribution/Client/CmdSdist" + "Distribution/Client/Compat/Directory" + "Distribution/Client/Compat/ExecutablePath" + "Distribution/Client/Compat/FilePerms" + "Distribution/Client/Compat/Orphans" + "Distribution/Client/Compat/Prelude" + "Distribution/Client/Compat/Process" + "Distribution/Client/Compat/Semaphore" + "Distribution/Client/Config" + "Distribution/Client/Configure" + "Distribution/Client/Dependency" + "Distribution/Client/Dependency/Types" + "Distribution/Client/DistDirLayout" + "Distribution/Client/Exec" + "Distribution/Client/Fetch" + "Distribution/Client/FetchUtils" + "Distribution/Client/FileMonitor" + "Distribution/Client/Freeze" + "Distribution/Client/GZipUtils" + "Distribution/Client/GenBounds" + "Distribution/Client/Get" + "Distribution/Client/Glob" + "Distribution/Client/GlobalFlags" + "Distribution/Client/Haddock" + "Distribution/Client/HashValue" + "Distribution/Client/HttpUtils" + "Distribution/Client/IndexUtils" + "Distribution/Client/IndexUtils/Timestamp" + "Distribution/Client/Init" + "Distribution/Client/Init/Heuristics" + "Distribution/Client/Init/Licenses" + "Distribution/Client/Init/Types" + "Distribution/Client/Install" + "Distribution/Client/InstallPlan" + "Distribution/Client/InstallSymlink" + "Distribution/Client/JobControl" + "Distribution/Client/List" + "Distribution/Client/Manpage" + "Distribution/Client/Nix" + "Distribution/Client/Outdated" + "Distribution/Client/PackageHash" + "Distribution/Client/PackageUtils" + "Distribution/Client/ParseUtils" + "Distribution/Client/ProjectBuilding" + "Distribution/Client/ProjectBuilding/Types" + "Distribution/Client/ProjectConfig" + "Distribution/Client/ProjectConfig/Legacy" + "Distribution/Client/ProjectConfig/Types" + "Distribution/Client/ProjectOrchestration" + "Distribution/Client/ProjectPlanOutput" + "Distribution/Client/ProjectPlanning" + "Distribution/Client/ProjectPlanning/Types" + "Distribution/Client/RebuildMonad" + "Distribution/Client/Reconfigure" + "Distribution/Client/Run" + "Distribution/Client/Sandbox" + "Distribution/Client/Sandbox/Index" + "Distribution/Client/Sandbox/PackageEnvironment" + "Distribution/Client/Sandbox/Timestamp" + "Distribution/Client/Sandbox/Types" + "Distribution/Client/SavedFlags" + "Distribution/Client/Security/DNS" + "Distribution/Client/Security/HTTP" + "Distribution/Client/Setup" + "Distribution/Client/SetupWrapper" + "Distribution/Client/SolverInstallPlan" + "Distribution/Client/SourceFiles" + "Distribution/Client/SourceRepo" + "Distribution/Client/SrcDist" + "Distribution/Client/Store" + "Distribution/Client/Tar" + "Distribution/Client/TargetSelector" + "Distribution/Client/Targets" + "Distribution/Client/Types" + "Distribution/Client/Update" + "Distribution/Client/Upload" + "Distribution/Client/Utils" + "Distribution/Client/Utils/Assertion" + "Distribution/Client/Utils/Json" + "Distribution/Client/Utils/Parsec" + "Distribution/Client/VCS" + "Distribution/Client/Win32SelfUpgrade" + "Distribution/Client/World" + "Distribution/Solver/Compat/Prelude" + "Distribution/Solver/Modular" + "Distribution/Solver/Modular/Assignment" + "Distribution/Solver/Modular/Builder" + "Distribution/Solver/Modular/Configured" + "Distribution/Solver/Modular/ConfiguredConversion" + "Distribution/Solver/Modular/ConflictSet" + "Distribution/Solver/Modular/Cycles" + "Distribution/Solver/Modular/Dependency" + "Distribution/Solver/Modular/Explore" + "Distribution/Solver/Modular/Flag" + "Distribution/Solver/Modular/Index" + "Distribution/Solver/Modular/IndexConversion" + "Distribution/Solver/Modular/LabeledGraph" + "Distribution/Solver/Modular/Linking" + "Distribution/Solver/Modular/Log" + "Distribution/Solver/Modular/Message" + "Distribution/Solver/Modular/PSQ" + "Distribution/Solver/Modular/Package" + "Distribution/Solver/Modular/Preference" + "Distribution/Solver/Modular/RetryLog" + "Distribution/Solver/Modular/Solver" + "Distribution/Solver/Modular/Tree" + "Distribution/Solver/Modular/Validate" + "Distribution/Solver/Modular/Var" + "Distribution/Solver/Modular/Version" + "Distribution/Solver/Modular/WeightedPSQ" + "Distribution/Solver/Types/ComponentDeps" + "Distribution/Solver/Types/ConstraintSource" + "Distribution/Solver/Types/DependencyResolver" + "Distribution/Solver/Types/Flag" + "Distribution/Solver/Types/InstSolverPackage" + "Distribution/Solver/Types/InstalledPreference" + "Distribution/Solver/Types/LabeledPackageConstraint" + "Distribution/Solver/Types/OptionalStanza" + "Distribution/Solver/Types/PackageConstraint" + "Distribution/Solver/Types/PackageFixedDeps" + "Distribution/Solver/Types/PackageIndex" + "Distribution/Solver/Types/PackagePath" + "Distribution/Solver/Types/PackagePreferences" + "Distribution/Solver/Types/PkgConfigDb" + "Distribution/Solver/Types/Progress" + "Distribution/Solver/Types/ResolverPackage" + "Distribution/Solver/Types/Settings" + "Distribution/Solver/Types/SolverId" + "Distribution/Solver/Types/SolverPackage" + "Distribution/Solver/Types/SourcePackage" + "Distribution/Solver/Types/Variable" + "Paths_cabal_install" + ]; + hsSourceDirs = [ "main" "." ]; + mainPath = (((((((([ + "Main.hs" + ] ++ (pkgs.lib).optionals (compiler.isGhc && (compiler.version).ge "8.0") ([ + "" + ] ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).lt "8.8") "")) ++ (pkgs.lib).optional (system.isAix) "") ++ (pkgs.lib).optional (!(compiler.isGhc && (compiler.version).ge "8.0")) "") ++ (pkgs.lib).optionals (flags.native-dns) ([ + "" + ] ++ [ "" ])) ++ [ "" ]) ++ [ + "" + ]) ++ (pkgs.lib).optional (flags.debug-expensive-assertions) "") ++ (pkgs.lib).optional (flags.debug-conflict-sets) "") ++ (pkgs.lib).optional (flags.debug-tracetree) ""; + }; + }; + }; + } // rec { src = (pkgs.lib).mkDefault ../.; } \ No newline at end of file diff --git a/nix/materialized/cabal/default.nix b/nix/materialized/cabal/default.nix new file mode 100644 index 00000000000..1c5a49a5002 --- /dev/null +++ b/nix/materialized/cabal/default.nix @@ -0,0 +1,124 @@ +{ + pkgs = hackage: + { + packages = { + "cryptohash-sha256".revision = (((hackage."cryptohash-sha256")."0.11.101.0").revisions).default; + "cryptohash-sha256".flags.exe = false; + "binary".revision = (((hackage."binary")."0.8.6.0").revisions).default; + "tar".revision = (((hackage."tar")."0.5.1.1").revisions).default; + "tar".flags.old-time = false; + "tar".flags.old-bytestring = false; + "ghc-prim".revision = (((hackage."ghc-prim")."0.5.3").revisions).default; + "edit-distance".revision = (((hackage."edit-distance")."0.2.2.1").revisions).default; + "stm".revision = (((hackage."stm")."2.5.0.0").revisions).default; + "unix".revision = (((hackage."unix")."2.7.2.2").revisions).default; + "mtl".revision = (((hackage."mtl")."2.2.2").revisions).default; + "network-uri".revision = (((hackage."network-uri")."2.6.3.0").revisions).default; + "zlib".revision = (((hackage."zlib")."0.6.2.2").revisions).default; + "zlib".flags.non-blocking-ffi = false; + "zlib".flags.bundled-c-zlib = false; + "zlib".flags.pkg-config = false; + "rts".revision = (((hackage."rts")."1.0").revisions).default; + "deepseq".revision = (((hackage."deepseq")."1.4.4.0").revisions).default; + "random".revision = (((hackage."random")."1.1").revisions).default; + "network".revision = (((hackage."network")."3.1.2.0").revisions).default; + "network".flags.devel = false; + "async".revision = (((hackage."async")."2.2.2").revisions).default; + "async".flags.bench = false; + "parsec".revision = (((hackage."parsec")."3.1.13.0").revisions).default; + "echo".revision = (((hackage."echo")."0.1.3").revisions).default; + "echo".flags.example = false; + "hsc2hs".revision = (((hackage."hsc2hs")."0.68.7").revisions).default; + "hsc2hs".flags.in-ghc-tree = false; + "resolv".revision = (((hackage."resolv")."0.1.2.0").revisions).default; + "directory".revision = (((hackage."directory")."1.3.3.0").revisions).default; + "template-haskell".revision = (((hackage."template-haskell")."2.14.0.0").revisions).default; + "containers".revision = (((hackage."containers")."0.6.0.1").revisions).default; + "bytestring".revision = (((hackage."bytestring")."0.10.8.2").revisions).default; + "text".revision = (((hackage."text")."1.2.3.1").revisions).default; + "Cabal".revision = (((hackage."Cabal")."3.2.0.0").revisions).default; + "Cabal".flags.bundled-binary-generic = false; + "base64-bytestring".revision = (((hackage."base64-bytestring")."1.2.0.0").revisions).default; + "base".revision = (((hackage."base")."4.12.0.0").revisions).default; + "time".revision = (((hackage."time")."1.8.0.2").revisions).default; + "base16-bytestring".revision = (((hackage."base16-bytestring")."0.1.1.7").revisions).default; + "transformers".revision = (((hackage."transformers")."0.5.6.2").revisions).default; + "hashable".revision = (((hackage."hashable")."1.3.0.0").revisions).default; + "hashable".flags.sse2 = true; + "hashable".flags.integer-gmp = true; + "hashable".flags.sse41 = false; + "hashable".flags.examples = false; + "HTTP".revision = (((hackage."HTTP")."4000.3.15").revisions).default; + "HTTP".flags.mtl1 = false; + "HTTP".flags.conduit10 = false; + "HTTP".flags.warn-as-error = false; + "HTTP".flags.warp-tests = false; + "HTTP".flags.network-uri = true; + "filepath".revision = (((hackage."filepath")."1.4.2.1").revisions).default; + "ed25519".revision = (((hackage."ed25519")."0.0.5.0").revisions).default; + "ed25519".flags.test-hlint = true; + "ed25519".flags.test-properties = true; + "ed25519".flags.test-doctests = true; + "ed25519".flags.no-donna = true; + "process".revision = (((hackage."process")."1.6.5.0").revisions).default; + "pretty".revision = (((hackage."pretty")."1.1.3.6").revisions).default; + "lukko".revision = (((hackage."lukko")."0.1.1.2").revisions).default; + "lukko".flags.ofd-locking = true; + "ghc-boot-th".revision = (((hackage."ghc-boot-th")."8.6.5").revisions).default; + "array".revision = (((hackage."array")."0.5.3.0").revisions).default; + "hackage-security".revision = (((hackage."hackage-security")."0.6.0.1").revisions).default; + "hackage-security".flags.old-directory = false; + "hackage-security".flags.use-network-uri = true; + "hackage-security".flags.base48 = true; + "hackage-security".flags.lukko = true; + "hackage-security".flags.mtl21 = false; + "integer-gmp".revision = (((hackage."integer-gmp")."1.0.2.0").revisions).default; + }; + compiler = { + version = "8.6.5"; + nix-name = "ghc865"; + packages = { + "binary" = "0.8.6.0"; + "ghc-prim" = "0.5.3"; + "stm" = "2.5.0.0"; + "unix" = "2.7.2.2"; + "mtl" = "2.2.2"; + "rts" = "1.0"; + "deepseq" = "1.4.4.0"; + "parsec" = "3.1.13.0"; + "directory" = "1.3.3.0"; + "template-haskell" = "2.14.0.0"; + "containers" = "0.6.0.1"; + "bytestring" = "0.10.8.2"; + "text" = "1.2.3.1"; + "base" = "4.12.0.0"; + "time" = "1.8.0.2"; + "transformers" = "0.5.6.2"; + "filepath" = "1.4.2.1"; + "process" = "1.6.5.0"; + "pretty" = "1.1.3.6"; + "ghc-boot-th" = "8.6.5"; + "array" = "0.5.3.0"; + "integer-gmp" = "1.0.2.0"; + }; + }; + }; + extras = hackage: + { packages = { cabal-install = ./.plan.nix/cabal-install.nix; }; }; + modules = [ + ({ lib, ... }: + { + packages = { + "cabal-install" = { + flags = { + "native-dns" = lib.mkOverride 900 true; + "debug-expensive-assertions" = lib.mkOverride 900 false; + "debug-tracetree" = lib.mkOverride 900 false; + "lukko" = lib.mkOverride 900 true; + "debug-conflict-sets" = lib.mkOverride 900 false; + }; + }; + }; + }) + ]; + } \ No newline at end of file diff --git a/nix/materialized/ghcid/.plan.nix/ghcid.nix b/nix/materialized/ghcid/.plan.nix/ghcid.nix new file mode 100644 index 00000000000..5957ea77e50 --- /dev/null +++ b/nix/materialized/ghcid/.plan.nix/ghcid.nix @@ -0,0 +1,130 @@ +{ system + , compiler + , flags + , pkgs + , hsPkgs + , pkgconfPkgs + , errorHandler + , config + , ... }: + { + flags = {}; + package = { + specVersion = "1.18"; + identifier = { name = "ghcid"; version = "0.8.7"; }; + license = "BSD-3-Clause"; + copyright = "Neil Mitchell 2014-2020"; + maintainer = "Neil Mitchell "; + author = "Neil Mitchell , jpmoresmau"; + homepage = "https://github.com/ndmitchell/ghcid#readme"; + url = ""; + synopsis = "GHCi based bare bones IDE"; + description = "Either \\\"GHCi as a daemon\\\" or \\\"GHC + a bit of an IDE\\\". A very simple Haskell development tool which shows you the errors in your project and updates them whenever you save. Run @ghcid --topmost --command=ghci@, where @--topmost@ makes the window on top of all others (Windows only) and @--command@ is the command to start GHCi on your project (defaults to @ghci@ if you have a @.ghci@ file, or else to @cabal repl@)."; + buildType = "Simple"; + isLocal = true; + detailLevel = "FullDetails"; + licenseFiles = [ "LICENSE" ]; + dataDir = ""; + dataFiles = []; + extraSrcFiles = []; + extraTmpFiles = []; + extraDocFiles = [ "CHANGES.txt" "README.md" ]; + }; + components = { + "library" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."time" or (errorHandler.buildDepError "time")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."process" or (errorHandler.buildDepError "process")) + (hsPkgs."ansi-terminal" or (errorHandler.buildDepError "ansi-terminal")) + (hsPkgs."cmdargs" or (errorHandler.buildDepError "cmdargs")) + ]; + buildable = true; + modules = [ + "Paths_ghcid" + "Language/Haskell/Ghcid/Escape" + "Language/Haskell/Ghcid/Parser" + "Language/Haskell/Ghcid/Types" + "Language/Haskell/Ghcid/Util" + "Language/Haskell/Ghcid" + ]; + hsSourceDirs = [ "src" ]; + }; + exes = { + "ghcid" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."time" or (errorHandler.buildDepError "time")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."fsnotify" or (errorHandler.buildDepError "fsnotify")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."process" or (errorHandler.buildDepError "process")) + (hsPkgs."cmdargs" or (errorHandler.buildDepError "cmdargs")) + (hsPkgs."ansi-terminal" or (errorHandler.buildDepError "ansi-terminal")) + (hsPkgs."terminal-size" or (errorHandler.buildDepError "terminal-size")) + ] ++ (if system.isWindows + then [ (hsPkgs."Win32" or (errorHandler.buildDepError "Win32")) ] + else [ (hsPkgs."unix" or (errorHandler.buildDepError "unix")) ]); + buildable = true; + modules = [ + "Language/Haskell/Ghcid/Escape" + "Language/Haskell/Ghcid/Parser" + "Language/Haskell/Ghcid/Terminal" + "Language/Haskell/Ghcid/Types" + "Language/Haskell/Ghcid/Util" + "Language/Haskell/Ghcid" + "Paths_ghcid" + "Session" + "Wait" + ]; + hsSourceDirs = [ "src" ]; + mainPath = [ "Ghcid.hs" ] ++ [ "" ]; + }; + }; + tests = { + "ghcid_test" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."time" or (errorHandler.buildDepError "time")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."process" or (errorHandler.buildDepError "process")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."fsnotify" or (errorHandler.buildDepError "fsnotify")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."ansi-terminal" or (errorHandler.buildDepError "ansi-terminal")) + (hsPkgs."terminal-size" or (errorHandler.buildDepError "terminal-size")) + (hsPkgs."cmdargs" or (errorHandler.buildDepError "cmdargs")) + (hsPkgs."tasty" or (errorHandler.buildDepError "tasty")) + (hsPkgs."tasty-hunit" or (errorHandler.buildDepError "tasty-hunit")) + ] ++ (if system.isWindows + then [ (hsPkgs."Win32" or (errorHandler.buildDepError "Win32")) ] + else [ (hsPkgs."unix" or (errorHandler.buildDepError "unix")) ]); + buildable = true; + modules = [ + "Ghcid" + "Language/Haskell/Ghcid" + "Language/Haskell/Ghcid/Escape" + "Language/Haskell/Ghcid/Parser" + "Language/Haskell/Ghcid/Terminal" + "Language/Haskell/Ghcid/Types" + "Language/Haskell/Ghcid/Util" + "Paths_ghcid" + "Session" + "Test/API" + "Test/Ghcid" + "Test/Parser" + "Test/Util" + "Wait" + ]; + hsSourceDirs = [ "src" ]; + mainPath = [ "Test.hs" ]; + }; + }; + }; + } // rec { src = (pkgs.lib).mkDefault ../.; } \ No newline at end of file diff --git a/nix/materialized/ghcid/default.nix b/nix/materialized/ghcid/default.nix new file mode 100644 index 00000000000..b6b40db5128 --- /dev/null +++ b/nix/materialized/ghcid/default.nix @@ -0,0 +1,129 @@ +{ + pkgs = hackage: + { + packages = { + "exceptions".revision = (((hackage."exceptions")."0.10.4").revisions).default; + "exceptions".flags.transformers-0-4 = true; + "binary".revision = (((hackage."binary")."0.8.6.0").revisions).default; + "ghc-prim".revision = (((hackage."ghc-prim")."0.5.3").revisions).default; + "extra".revision = (((hackage."extra")."1.7.8").revisions).default; + "stm".revision = (((hackage."stm")."2.5.0.0").revisions).default; + "unix".revision = (((hackage."unix")."2.7.2.2").revisions).default; + "mtl".revision = (((hackage."mtl")."2.2.2").revisions).default; + "lifted-async".revision = (((hackage."lifted-async")."0.10.1.2").revisions).default; + "rts".revision = (((hackage."rts")."1.0").revisions).default; + "cmdargs".revision = (((hackage."cmdargs")."0.10.20").revisions).default; + "cmdargs".flags.testprog = false; + "cmdargs".flags.quotation = true; + "clock".revision = (((hackage."clock")."0.8").revisions).default; + "clock".flags.llvm = false; + "enclosed-exceptions".revision = (((hackage."enclosed-exceptions")."1.0.3").revisions).default; + "tasty".revision = (((hackage."tasty")."1.3.1").revisions).default; + "tasty".flags.clock = true; + "deepseq".revision = (((hackage."deepseq")."1.4.4.0").revisions).default; + "optparse-applicative".revision = (((hackage."optparse-applicative")."0.16.0.0").revisions).default; + "async".revision = (((hackage."async")."2.2.2").revisions).default; + "async".flags.bench = false; + "constraints".revision = (((hackage."constraints")."0.12").revisions).default; + "semigroups".revision = (((hackage."semigroups")."0.19.1").revisions).default; + "semigroups".flags.bytestring = true; + "semigroups".flags.unordered-containers = true; + "semigroups".flags.text = true; + "semigroups".flags.tagged = true; + "semigroups".flags.containers = true; + "semigroups".flags.binary = true; + "semigroups".flags.hashable = true; + "semigroups".flags.transformers = true; + "semigroups".flags.deepseq = true; + "semigroups".flags.bytestring-builder = false; + "semigroups".flags.template-haskell = true; + "lifted-base".revision = (((hackage."lifted-base")."0.2.3.12").revisions).default; + "hsc2hs".revision = (((hackage."hsc2hs")."0.68.7").revisions).default; + "hsc2hs".flags.in-ghc-tree = false; + "directory".revision = (((hackage."directory")."1.3.3.0").revisions).default; + "transformers-compat".revision = (((hackage."transformers-compat")."0.6.6").revisions).default; + "transformers-compat".flags.five = false; + "transformers-compat".flags.generic-deriving = true; + "transformers-compat".flags.two = false; + "transformers-compat".flags.five-three = true; + "transformers-compat".flags.mtl = true; + "transformers-compat".flags.four = false; + "transformers-compat".flags.three = false; + "template-haskell".revision = (((hackage."template-haskell")."2.14.0.0").revisions).default; + "call-stack".revision = (((hackage."call-stack")."0.2.0").revisions).default; + "terminal-size".revision = (((hackage."terminal-size")."0.3.2.1").revisions).default; + "ansi-terminal".revision = (((hackage."ansi-terminal")."0.11").revisions).default; + "ansi-terminal".flags.example = false; + "tagged".revision = (((hackage."tagged")."0.8.6").revisions).default; + "tagged".flags.transformers = true; + "tagged".flags.deepseq = true; + "containers".revision = (((hackage."containers")."0.6.0.1").revisions).default; + "shelly".revision = (((hackage."shelly")."1.9.0").revisions).default; + "shelly".flags.build-examples = false; + "shelly".flags.lifted = false; + "bytestring".revision = (((hackage."bytestring")."0.10.8.2").revisions).default; + "ansi-wl-pprint".revision = (((hackage."ansi-wl-pprint")."0.6.9").revisions).default; + "ansi-wl-pprint".flags.example = false; + "wcwidth".revision = (((hackage."wcwidth")."0.0.2").revisions).default; + "wcwidth".flags.split-base = true; + "wcwidth".flags.cli = false; + "hinotify".revision = (((hackage."hinotify")."0.4").revisions).default; + "type-equality".revision = (((hackage."type-equality")."1").revisions).default; + "text".revision = (((hackage."text")."1.2.3.1").revisions).default; + "base".revision = (((hackage."base")."4.12.0.0").revisions).default; + "time".revision = (((hackage."time")."1.8.0.2").revisions).default; + "tasty-hunit".revision = (((hackage."tasty-hunit")."0.10.0.2").revisions).default; + "transformers".revision = (((hackage."transformers")."0.5.6.2").revisions).default; + "hashable".revision = (((hackage."hashable")."1.3.0.0").revisions).default; + "hashable".flags.sse2 = true; + "hashable".flags.integer-gmp = true; + "hashable".flags.sse41 = false; + "hashable".flags.examples = false; + "colour".revision = (((hackage."colour")."2.3.5").revisions).default; + "transformers-base".revision = (((hackage."transformers-base")."0.4.5.2").revisions).default; + "transformers-base".flags.orphaninstances = true; + "filepath".revision = (((hackage."filepath")."1.4.2.1").revisions).default; + "unbounded-delays".revision = (((hackage."unbounded-delays")."0.1.1.0").revisions).default; + "unix-compat".revision = (((hackage."unix-compat")."0.5.2").revisions).default; + "unix-compat".flags.old-time = false; + "monad-control".revision = (((hackage."monad-control")."1.0.2.3").revisions).default; + "process".revision = (((hackage."process")."1.6.5.0").revisions).default; + "fsnotify".revision = (((hackage."fsnotify")."0.3.0.1").revisions).default; + "pretty".revision = (((hackage."pretty")."1.1.3.6").revisions).default; + "ghc-boot-th".revision = (((hackage."ghc-boot-th")."8.6.5").revisions).default; + "base-orphans".revision = (((hackage."base-orphans")."0.8.3").revisions).default; + "array".revision = (((hackage."array")."0.5.3.0").revisions).default; + "integer-gmp".revision = (((hackage."integer-gmp")."1.0.2.0").revisions).default; + }; + compiler = { + version = "8.6.5"; + nix-name = "ghc865"; + packages = { + "binary" = "0.8.6.0"; + "ghc-prim" = "0.5.3"; + "stm" = "2.5.0.0"; + "unix" = "2.7.2.2"; + "mtl" = "2.2.2"; + "rts" = "1.0"; + "deepseq" = "1.4.4.0"; + "directory" = "1.3.3.0"; + "template-haskell" = "2.14.0.0"; + "containers" = "0.6.0.1"; + "bytestring" = "0.10.8.2"; + "text" = "1.2.3.1"; + "base" = "4.12.0.0"; + "time" = "1.8.0.2"; + "transformers" = "0.5.6.2"; + "filepath" = "1.4.2.1"; + "process" = "1.6.5.0"; + "pretty" = "1.1.3.6"; + "ghc-boot-th" = "8.6.5"; + "array" = "0.5.3.0"; + "integer-gmp" = "1.0.2.0"; + }; + }; + }; + extras = hackage: + { packages = { ghcid = ./.plan.nix/ghcid.nix; }; }; + modules = [ ({ lib, ... }: { packages = { "ghcid" = { flags = {}; }; }; }) ]; + } \ No newline at end of file diff --git a/nix/materialized/haskell-language-server/.plan.nix/brittany.nix b/nix/materialized/haskell-language-server/.plan.nix/brittany.nix new file mode 100644 index 00000000000..81645c7fe26 --- /dev/null +++ b/nix/materialized/haskell-language-server/.plan.nix/brittany.nix @@ -0,0 +1,211 @@ +{ system + , compiler + , flags + , pkgs + , hsPkgs + , pkgconfPkgs + , errorHandler + , config + , ... }: + { + flags = { brittany-dev-lib = false; brittany-test-perf = false; }; + package = { + specVersion = "1.18"; + identifier = { name = "brittany"; version = "0.12.1.1"; }; + license = "AGPL-3.0-only"; + copyright = "Copyright (C) 2016-2019 Lennart Spitzner\nCopyright (C) 2019 PRODA LTD"; + maintainer = "Lennart Spitzner "; + author = "Lennart Spitzner"; + homepage = "https://github.com/lspitzner/brittany/"; + url = ""; + synopsis = "Haskell source code formatter"; + description = "See .\n\nIf you are interested in the implementation, have a look at ;\n\nThe implementation is documented in more detail ."; + buildType = "Simple"; + isLocal = true; + detailLevel = "FullDetails"; + licenseFiles = [ "LICENSE" ]; + dataDir = ""; + dataFiles = []; + extraSrcFiles = [ "src-literatetests/*.blt" "srcinc/prelude.inc" ]; + extraTmpFiles = []; + extraDocFiles = [ "ChangeLog.md" "README.md" "doc/implementation/*.md" ]; + }; + components = { + "library" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."ghc" or (errorHandler.buildDepError "ghc")) + (hsPkgs."ghc-paths" or (errorHandler.buildDepError "ghc-paths")) + (hsPkgs."ghc-exactprint" or (errorHandler.buildDepError "ghc-exactprint")) + (hsPkgs."transformers" or (errorHandler.buildDepError "transformers")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."mtl" or (errorHandler.buildDepError "mtl")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."multistate" or (errorHandler.buildDepError "multistate")) + (hsPkgs."syb" or (errorHandler.buildDepError "syb")) + (hsPkgs."data-tree-print" or (errorHandler.buildDepError "data-tree-print")) + (hsPkgs."pretty" or (errorHandler.buildDepError "pretty")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."butcher" or (errorHandler.buildDepError "butcher")) + (hsPkgs."yaml" or (errorHandler.buildDepError "yaml")) + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."uniplate" or (errorHandler.buildDepError "uniplate")) + (hsPkgs."strict" or (errorHandler.buildDepError "strict")) + (hsPkgs."monad-memo" or (errorHandler.buildDepError "monad-memo")) + (hsPkgs."unsafe" or (errorHandler.buildDepError "unsafe")) + (hsPkgs."safe" or (errorHandler.buildDepError "safe")) + (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq")) + (hsPkgs."semigroups" or (errorHandler.buildDepError "semigroups")) + (hsPkgs."cmdargs" or (errorHandler.buildDepError "cmdargs")) + (hsPkgs."czipwith" or (errorHandler.buildDepError "czipwith")) + (hsPkgs."ghc-boot-th" or (errorHandler.buildDepError "ghc-boot-th")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."random" or (errorHandler.buildDepError "random")) + ]; + buildable = true; + modules = [ + "Language/Haskell/Brittany/Internal/LayouterBasics" + "Language/Haskell/Brittany/Internal/Backend" + "Language/Haskell/Brittany/Internal/BackendUtils" + "Language/Haskell/Brittany/Internal/ExactPrintUtils" + "Language/Haskell/Brittany/Internal/Layouters/Type" + "Language/Haskell/Brittany/Internal/Layouters/Decl" + "Language/Haskell/Brittany/Internal/Layouters/Expr" + "Language/Haskell/Brittany/Internal/Layouters/Stmt" + "Language/Haskell/Brittany/Internal/Layouters/Pattern" + "Language/Haskell/Brittany/Internal/Layouters/IE" + "Language/Haskell/Brittany/Internal/Layouters/Import" + "Language/Haskell/Brittany/Internal/Layouters/Module" + "Language/Haskell/Brittany/Internal/Layouters/DataDecl" + "Language/Haskell/Brittany/Internal/Transformations/Alt" + "Language/Haskell/Brittany/Internal/Transformations/Floating" + "Language/Haskell/Brittany/Internal/Transformations/Par" + "Language/Haskell/Brittany/Internal/Transformations/Columns" + "Language/Haskell/Brittany/Internal/Transformations/Indent" + "Language/Haskell/Brittany" + "Language/Haskell/Brittany/Main" + "Language/Haskell/Brittany/Internal" + "Language/Haskell/Brittany/Internal/Prelude" + "Language/Haskell/Brittany/Internal/PreludeUtils" + "Language/Haskell/Brittany/Internal/Types" + "Language/Haskell/Brittany/Internal/Utils" + "Language/Haskell/Brittany/Internal/Config" + "Language/Haskell/Brittany/Internal/Config/Types" + "Language/Haskell/Brittany/Internal/Config/Types/Instances" + "Language/Haskell/Brittany/Internal/Obfuscation" + "Paths_brittany" + ]; + hsSourceDirs = [ "src" ]; + includeDirs = [ "srcinc" ]; + }; + exes = { + "brittany" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."brittany" or (errorHandler.buildDepError "brittany")) + ]; + buildable = if flags.brittany-dev-lib then false else true; + hsSourceDirs = [ "src-brittany" ]; + mainPath = [ "Main.hs" ] ++ [ "" ]; + }; + }; + tests = { + "unittests" = { + depends = [ + (hsPkgs."brittany" or (errorHandler.buildDepError "brittany")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."ghc" or (errorHandler.buildDepError "ghc")) + (hsPkgs."ghc-paths" or (errorHandler.buildDepError "ghc-paths")) + (hsPkgs."ghc-exactprint" or (errorHandler.buildDepError "ghc-exactprint")) + (hsPkgs."transformers" or (errorHandler.buildDepError "transformers")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."mtl" or (errorHandler.buildDepError "mtl")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."multistate" or (errorHandler.buildDepError "multistate")) + (hsPkgs."syb" or (errorHandler.buildDepError "syb")) + (hsPkgs."data-tree-print" or (errorHandler.buildDepError "data-tree-print")) + (hsPkgs."pretty" or (errorHandler.buildDepError "pretty")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."butcher" or (errorHandler.buildDepError "butcher")) + (hsPkgs."yaml" or (errorHandler.buildDepError "yaml")) + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."uniplate" or (errorHandler.buildDepError "uniplate")) + (hsPkgs."strict" or (errorHandler.buildDepError "strict")) + (hsPkgs."monad-memo" or (errorHandler.buildDepError "monad-memo")) + (hsPkgs."unsafe" or (errorHandler.buildDepError "unsafe")) + (hsPkgs."safe" or (errorHandler.buildDepError "safe")) + (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq")) + (hsPkgs."semigroups" or (errorHandler.buildDepError "semigroups")) + (hsPkgs."cmdargs" or (errorHandler.buildDepError "cmdargs")) + (hsPkgs."czipwith" or (errorHandler.buildDepError "czipwith")) + (hsPkgs."ghc-boot-th" or (errorHandler.buildDepError "ghc-boot-th")) + (hsPkgs."hspec" or (errorHandler.buildDepError "hspec")) + ]; + buildable = if flags.brittany-dev-lib || !flags.brittany-test-perf + then false + else true; + modules = [ "TestUtils" "AsymptoticPerfTests" ]; + hsSourceDirs = [ "src-unittests" ]; + includeDirs = [ "srcinc" ]; + mainPath = [ "TestMain.hs" ]; + }; + "littests" = { + depends = [ + (hsPkgs."brittany" or (errorHandler.buildDepError "brittany")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."ghc" or (errorHandler.buildDepError "ghc")) + (hsPkgs."ghc-paths" or (errorHandler.buildDepError "ghc-paths")) + (hsPkgs."ghc-exactprint" or (errorHandler.buildDepError "ghc-exactprint")) + (hsPkgs."transformers" or (errorHandler.buildDepError "transformers")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."mtl" or (errorHandler.buildDepError "mtl")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."multistate" or (errorHandler.buildDepError "multistate")) + (hsPkgs."syb" or (errorHandler.buildDepError "syb")) + (hsPkgs."data-tree-print" or (errorHandler.buildDepError "data-tree-print")) + (hsPkgs."pretty" or (errorHandler.buildDepError "pretty")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."butcher" or (errorHandler.buildDepError "butcher")) + (hsPkgs."yaml" or (errorHandler.buildDepError "yaml")) + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."uniplate" or (errorHandler.buildDepError "uniplate")) + (hsPkgs."strict" or (errorHandler.buildDepError "strict")) + (hsPkgs."monad-memo" or (errorHandler.buildDepError "monad-memo")) + (hsPkgs."unsafe" or (errorHandler.buildDepError "unsafe")) + (hsPkgs."safe" or (errorHandler.buildDepError "safe")) + (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq")) + (hsPkgs."semigroups" or (errorHandler.buildDepError "semigroups")) + (hsPkgs."cmdargs" or (errorHandler.buildDepError "cmdargs")) + (hsPkgs."czipwith" or (errorHandler.buildDepError "czipwith")) + (hsPkgs."ghc-boot-th" or (errorHandler.buildDepError "ghc-boot-th")) + (hsPkgs."hspec" or (errorHandler.buildDepError "hspec")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."parsec" or (errorHandler.buildDepError "parsec")) + ]; + buildable = if flags.brittany-dev-lib then false else true; + hsSourceDirs = [ "src-literatetests" ]; + includeDirs = [ "srcinc" ]; + mainPath = [ "Main.hs" ]; + }; + "libinterfacetests" = { + depends = [ + (hsPkgs."brittany" or (errorHandler.buildDepError "brittany")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."transformers" or (errorHandler.buildDepError "transformers")) + (hsPkgs."hspec" or (errorHandler.buildDepError "hspec")) + ]; + buildable = if flags.brittany-dev-lib then false else true; + hsSourceDirs = [ "src-libinterfacetests" ]; + includeDirs = [ "srcinc" ]; + mainPath = [ "Main.hs" ]; + }; + }; + }; + } // rec { src = (pkgs.lib).mkDefault .././.source-repository-packages/0; } \ No newline at end of file diff --git a/nix/materialized/haskell-language-server/.plan.nix/ghcide.nix b/nix/materialized/haskell-language-server/.plan.nix/ghcide.nix new file mode 100644 index 00000000000..4a5e2f7802a --- /dev/null +++ b/nix/materialized/haskell-language-server/.plan.nix/ghcide.nix @@ -0,0 +1,308 @@ +{ system + , compiler + , flags + , pkgs + , hsPkgs + , pkgconfPkgs + , errorHandler + , config + , ... }: + { + flags = { ghc-lib = false; }; + package = { + specVersion = "1.20"; + identifier = { name = "ghcide"; version = "0.4.0"; }; + license = "Apache-2.0"; + copyright = "Digital Asset and Ghcide contributors 2018-2020"; + maintainer = "Ghcide contributors"; + author = "Digital Asset and Ghcide contributors"; + homepage = "https://github.com/haskell/ghcide#readme"; + url = ""; + synopsis = "The core of an IDE"; + description = "A library for building Haskell IDE's on top of the GHC API."; + buildType = "Simple"; + isLocal = true; + detailLevel = "FullDetails"; + licenseFiles = [ "LICENSE" ]; + dataDir = ""; + dataFiles = []; + extraSrcFiles = [ + "include/ghc-api-version.h" + "README.md" + "CHANGELOG.md" + "test/data/hover/*.hs" + "test/data/multi/cabal.project" + "test/data/multi/hie.yaml" + "test/data/multi/a/a.cabal" + "test/data/multi/a/*.hs" + "test/data/multi/b/b.cabal" + "test/data/multi/b/*.hs" + ]; + extraTmpFiles = []; + extraDocFiles = []; + }; + components = { + "library" = { + depends = ([ + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."array" or (errorHandler.buildDepError "array")) + (hsPkgs."async" or (errorHandler.buildDepError "async")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."binary" or (errorHandler.buildDepError "binary")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."data-default" or (errorHandler.buildDepError "data-default")) + (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."fuzzy" or (errorHandler.buildDepError "fuzzy")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."fingertree" or (errorHandler.buildDepError "fingertree")) + (hsPkgs."Glob" or (errorHandler.buildDepError "Glob")) + (hsPkgs."haddock-library" or (errorHandler.buildDepError "haddock-library")) + (hsPkgs."hashable" or (errorHandler.buildDepError "hashable")) + (hsPkgs."haskell-lsp-types" or (errorHandler.buildDepError "haskell-lsp-types")) + (hsPkgs."haskell-lsp" or (errorHandler.buildDepError "haskell-lsp")) + (hsPkgs."mtl" or (errorHandler.buildDepError "mtl")) + (hsPkgs."network-uri" or (errorHandler.buildDepError "network-uri")) + (hsPkgs."prettyprinter-ansi-terminal" or (errorHandler.buildDepError "prettyprinter-ansi-terminal")) + (hsPkgs."prettyprinter-ansi-terminal" or (errorHandler.buildDepError "prettyprinter-ansi-terminal")) + (hsPkgs."prettyprinter" or (errorHandler.buildDepError "prettyprinter")) + (hsPkgs."regex-tdfa" or (errorHandler.buildDepError "regex-tdfa")) + (hsPkgs."rope-utf16-splay" or (errorHandler.buildDepError "rope-utf16-splay")) + (hsPkgs."safe" or (errorHandler.buildDepError "safe")) + (hsPkgs."safe-exceptions" or (errorHandler.buildDepError "safe-exceptions")) + (hsPkgs."shake" or (errorHandler.buildDepError "shake")) + (hsPkgs."sorted-list" or (errorHandler.buildDepError "sorted-list")) + (hsPkgs."stm" or (errorHandler.buildDepError "stm")) + (hsPkgs."syb" or (errorHandler.buildDepError "syb")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."time" or (errorHandler.buildDepError "time")) + (hsPkgs."transformers" or (errorHandler.buildDepError "transformers")) + (hsPkgs."unordered-containers" or (errorHandler.buildDepError "unordered-containers")) + (hsPkgs."utf8-string" or (errorHandler.buildDepError "utf8-string")) + (hsPkgs."hslogger" or (errorHandler.buildDepError "hslogger")) + ] ++ (if flags.ghc-lib + then [ + (hsPkgs."ghc-lib" or (errorHandler.buildDepError "ghc-lib")) + (hsPkgs."ghc-lib-parser" or (errorHandler.buildDepError "ghc-lib-parser")) + ] + else [ + (hsPkgs."ghc-boot-th" or (errorHandler.buildDepError "ghc-boot-th")) + (hsPkgs."ghc-boot" or (errorHandler.buildDepError "ghc-boot")) + (hsPkgs."ghc" or (errorHandler.buildDepError "ghc")) + (hsPkgs."ghc-check" or (errorHandler.buildDepError "ghc-check")) + (hsPkgs."ghc-paths" or (errorHandler.buildDepError "ghc-paths")) + (hsPkgs."cryptohash-sha1" or (errorHandler.buildDepError "cryptohash-sha1")) + (hsPkgs."hie-bios" or (errorHandler.buildDepError "hie-bios")) + (hsPkgs."implicit-hie-cradle" or (errorHandler.buildDepError "implicit-hie-cradle")) + (hsPkgs."base16-bytestring" or (errorHandler.buildDepError "base16-bytestring")) + ])) ++ (if system.isWindows + then [ (hsPkgs."Win32" or (errorHandler.buildDepError "Win32")) ] + else [ (hsPkgs."unix" or (errorHandler.buildDepError "unix")) ]); + buildable = true; + modules = ((([ + "Development/IDE/Core/Compile" + "Development/IDE/Core/Preprocessor" + "Development/IDE/Core/FileExists" + "Development/IDE/GHC/CPP" + "Development/IDE/GHC/Orphans" + "Development/IDE/GHC/Warnings" + "Development/IDE/GHC/WithDynFlags" + "Development/IDE/Import/FindImports" + "Development/IDE/LSP/Notifications" + "Development/IDE/Spans/Documentation" + "Development/IDE/Plugin/CodeAction/PositionIndexed" + "Development/IDE/Plugin/CodeAction/Rules" + "Development/IDE/Plugin/CodeAction/RuleTypes" + "Development/IDE/Plugin/Completions/Logic" + "Development/IDE/Plugin/Completions/Types" + "Development/IDE/Types/Action" + "Development/IDE" + "Development/IDE/Compat" + "Development/IDE/Core/Debouncer" + "Development/IDE/Core/FileStore" + "Development/IDE/Core/IdeConfiguration" + "Development/IDE/Core/OfInterest" + "Development/IDE/Core/PositionMapping" + "Development/IDE/Core/Rules" + "Development/IDE/Core/RuleTypes" + "Development/IDE/Core/Service" + "Development/IDE/Core/Shake" + "Development/IDE/GHC/Compat" + "Development/IDE/GHC/Error" + "Development/IDE/GHC/Util" + "Development/IDE/Import/DependencyInformation" + "Development/IDE/LSP/HoverDefinition" + "Development/IDE/LSP/LanguageServer" + "Development/IDE/LSP/Outline" + "Development/IDE/LSP/Protocol" + "Development/IDE/LSP/Server" + "Development/IDE/Spans/Common" + "Development/IDE/Spans/AtPoint" + "Development/IDE/Spans/LocalBindings" + "Development/IDE/Types/Diagnostics" + "Development/IDE/Types/Exports" + "Development/IDE/Types/Location" + "Development/IDE/Types/Logger" + "Development/IDE/Types/Options" + "Development/IDE/Plugin" + "Development/IDE/Plugin/Completions" + "Development/IDE/Plugin/CodeAction" + "Development/IDE/Plugin/Test" + ] ++ (pkgs.lib).optionals (!flags.ghc-lib) [ + "Development/IDE/Session/VersionCheck" + "Development/IDE/Session" + ]) ++ (pkgs.lib).optionals (compiler.isGhc && (compiler.version).gt "8.5" && (compiler.isGhc && (compiler.version).lt "8.7") && !flags.ghc-lib) [ + "Development/IDE/GHC/HieAst" + "Development/IDE/GHC/HieBin" + "Development/IDE/GHC/HieTypes" + "Development/IDE/GHC/HieDebug" + "Development/IDE/GHC/HieUtils" + ]) ++ (pkgs.lib).optionals (compiler.isGhc && (compiler.version).gt "8.7" && (compiler.isGhc && (compiler.version).lt "8.10") || flags.ghc-lib) [ + "Development/IDE/GHC/HieAst" + "Development/IDE/GHC/HieBin" + ]) ++ (pkgs.lib).optionals (compiler.isGhc && (compiler.version).gt "8.9") [ + "Development/IDE/GHC/HieAst" + "Development/IDE/GHC/HieBin" + ]; + cSources = (pkgs.lib).optional (!system.isWindows) "cbits/getmodtime.c"; + hsSourceDirs = ((([ + "src" + ] ++ (pkgs.lib).optional (!flags.ghc-lib) "session-loader") ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).gt "8.5" && (compiler.isGhc && (compiler.version).lt "8.7") && !flags.ghc-lib) "src-ghc86") ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).gt "8.7" && (compiler.isGhc && (compiler.version).lt "8.10") || flags.ghc-lib) "src-ghc88") ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).gt "8.9") "src-ghc810"; + includeDirs = [ "include" ]; + }; + exes = { + "ghcide-test-preprocessor" = { + depends = [ (hsPkgs."base" or (errorHandler.buildDepError "base")) ]; + buildable = true; + hsSourceDirs = [ "test/preprocessor" ]; + mainPath = [ "Main.hs" ]; + }; + "ghcide" = { + depends = [ + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."data-default" or (errorHandler.buildDepError "data-default")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."gitrev" or (errorHandler.buildDepError "gitrev")) + (hsPkgs."hashable" or (errorHandler.buildDepError "hashable")) + (hsPkgs."haskell-lsp" or (errorHandler.buildDepError "haskell-lsp")) + (hsPkgs."haskell-lsp-types" or (errorHandler.buildDepError "haskell-lsp-types")) + (hsPkgs."hie-bios" or (errorHandler.buildDepError "hie-bios")) + (hsPkgs."ghcide" or (errorHandler.buildDepError "ghcide")) + (hsPkgs."lens" or (errorHandler.buildDepError "lens")) + (hsPkgs."optparse-applicative" or (errorHandler.buildDepError "optparse-applicative")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."unordered-containers" or (errorHandler.buildDepError "unordered-containers")) + ]; + buildable = if flags.ghc-lib then false else true; + modules = [ "Arguments" "Paths_ghcide" ]; + hsSourceDirs = [ "exe" ]; + mainPath = [ "Main.hs" ] ++ (pkgs.lib).optional (flags.ghc-lib) ""; + }; + "ghcide-bench" = { + depends = [ + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."ghcide" or (errorHandler.buildDepError "ghcide")) + (hsPkgs."lsp-test" or (errorHandler.buildDepError "lsp-test")) + (hsPkgs."optparse-applicative" or (errorHandler.buildDepError "optparse-applicative")) + (hsPkgs."process" or (errorHandler.buildDepError "process")) + (hsPkgs."safe-exceptions" or (errorHandler.buildDepError "safe-exceptions")) + ]; + build-tools = [ + (hsPkgs.buildPackages.ghcide or (pkgs.buildPackages.ghcide or (errorHandler.buildToolDepError "ghcide"))) + ]; + buildable = true; + modules = [ "Experiments" ]; + hsSourceDirs = [ "bench/lib" "bench/exe" ]; + includeDirs = [ "include" ]; + mainPath = [ "Main.hs" ]; + }; + }; + tests = { + "ghcide-tests" = { + depends = [ + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."binary" or (errorHandler.buildDepError "binary")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."ghc" or (errorHandler.buildDepError "ghc")) + (hsPkgs."ghcide" or (errorHandler.buildDepError "ghcide")) + (hsPkgs."ghc-typelits-knownnat" or (errorHandler.buildDepError "ghc-typelits-knownnat")) + (hsPkgs."haddock-library" or (errorHandler.buildDepError "haddock-library")) + (hsPkgs."haskell-lsp" or (errorHandler.buildDepError "haskell-lsp")) + (hsPkgs."haskell-lsp-types" or (errorHandler.buildDepError "haskell-lsp-types")) + (hsPkgs."network-uri" or (errorHandler.buildDepError "network-uri")) + (hsPkgs."lens" or (errorHandler.buildDepError "lens")) + (hsPkgs."lsp-test" or (errorHandler.buildDepError "lsp-test")) + (hsPkgs."optparse-applicative" or (errorHandler.buildDepError "optparse-applicative")) + (hsPkgs."process" or (errorHandler.buildDepError "process")) + (hsPkgs."QuickCheck" or (errorHandler.buildDepError "QuickCheck")) + (hsPkgs."quickcheck-instances" or (errorHandler.buildDepError "quickcheck-instances")) + (hsPkgs."rope-utf16-splay" or (errorHandler.buildDepError "rope-utf16-splay")) + (hsPkgs."safe" or (errorHandler.buildDepError "safe")) + (hsPkgs."safe-exceptions" or (errorHandler.buildDepError "safe-exceptions")) + (hsPkgs."shake" or (errorHandler.buildDepError "shake")) + (hsPkgs."tasty" or (errorHandler.buildDepError "tasty")) + (hsPkgs."tasty-expected-failure" or (errorHandler.buildDepError "tasty-expected-failure")) + (hsPkgs."tasty-hunit" or (errorHandler.buildDepError "tasty-hunit")) + (hsPkgs."tasty-quickcheck" or (errorHandler.buildDepError "tasty-quickcheck")) + (hsPkgs."tasty-rerun" or (errorHandler.buildDepError "tasty-rerun")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + ] ++ (pkgs.lib).optionals (compiler.isGhc && (compiler.version).ge "8.6") [ + (hsPkgs."record-dot-preprocessor" or (errorHandler.buildDepError "record-dot-preprocessor")) + (hsPkgs."record-hasfield" or (errorHandler.buildDepError "record-hasfield")) + ]; + build-tools = [ + (hsPkgs.buildPackages.ghcide or (pkgs.buildPackages.ghcide or (errorHandler.buildToolDepError "ghcide"))) + (hsPkgs.buildPackages.ghcide or (pkgs.buildPackages.ghcide or (errorHandler.buildToolDepError "ghcide"))) + ]; + buildable = if flags.ghc-lib then false else true; + modules = [ + "Development/IDE/Test" + "Development/IDE/Test/Runfiles" + "Experiments" + ]; + hsSourceDirs = [ "test/cabal" "test/exe" "test/src" "bench/lib" ]; + includeDirs = [ "include" ]; + mainPath = [ "Main.hs" ]; + }; + }; + benchmarks = { + "benchHist" = { + depends = [ + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."Chart" or (errorHandler.buildDepError "Chart")) + (hsPkgs."Chart-diagrams" or (errorHandler.buildDepError "Chart-diagrams")) + (hsPkgs."diagrams" or (errorHandler.buildDepError "diagrams")) + (hsPkgs."diagrams-svg" or (errorHandler.buildDepError "diagrams-svg")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."shake" or (errorHandler.buildDepError "shake")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."yaml" or (errorHandler.buildDepError "yaml")) + ]; + build-tools = [ + (hsPkgs.buildPackages.ghcide or (pkgs.buildPackages.ghcide or (errorHandler.buildToolDepError "ghcide"))) + (hsPkgs.buildPackages.ghcide or (pkgs.buildPackages.ghcide or (errorHandler.buildToolDepError "ghcide"))) + ]; + buildable = true; + }; + }; + }; + } // rec { src = (pkgs.lib).mkDefault ../ghcide; } \ No newline at end of file diff --git a/nix/materialized/haskell-language-server/.plan.nix/haskell-language-server.nix b/nix/materialized/haskell-language-server/.plan.nix/haskell-language-server.nix new file mode 100644 index 00000000000..b3b882caf60 --- /dev/null +++ b/nix/materialized/haskell-language-server/.plan.nix/haskell-language-server.nix @@ -0,0 +1,272 @@ +{ system + , compiler + , flags + , pkgs + , hsPkgs + , pkgconfPkgs + , errorHandler + , config + , ... }: + { + flags = { agpl = true; pedantic = false; }; + package = { + specVersion = "2.2"; + identifier = { name = "haskell-language-server"; version = "0.5.1.0"; }; + license = "Apache-2.0"; + copyright = "Alan Zimmerman"; + maintainer = "alan.zimm@gmail.com"; + author = "Alan Zimmerman"; + homepage = "https://github.com/haskell/haskell-language-server#readme"; + url = ""; + synopsis = "LSP server for GHC"; + description = "Please see the README on GitHub at "; + buildType = "Simple"; + isLocal = true; + detailLevel = "FullDetails"; + licenseFiles = [ "LICENSE" ]; + dataDir = ""; + dataFiles = []; + extraSrcFiles = [ + "README.md" + "ChangeLog.md" + "include/ghc-api-version.h" + ]; + extraTmpFiles = []; + extraDocFiles = []; + }; + components = { + "library" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."data-default" or (errorHandler.buildDepError "data-default")) + (hsPkgs."ghc" or (errorHandler.buildDepError "ghc")) + (hsPkgs."ghcide" or (errorHandler.buildDepError "ghcide")) + (hsPkgs."gitrev" or (errorHandler.buildDepError "gitrev")) + (hsPkgs."haskell-lsp" or (errorHandler.buildDepError "haskell-lsp")) + (hsPkgs."hie-bios" or (errorHandler.buildDepError "hie-bios")) + (hsPkgs."hls-plugin-api" or (errorHandler.buildDepError "hls-plugin-api")) + (hsPkgs."hslogger" or (errorHandler.buildDepError "hslogger")) + (hsPkgs."optparse-applicative" or (errorHandler.buildDepError "optparse-applicative")) + (hsPkgs."optparse-simple" or (errorHandler.buildDepError "optparse-simple")) + (hsPkgs."process" or (errorHandler.buildDepError "process")) + (hsPkgs."unordered-containers" or (errorHandler.buildDepError "unordered-containers")) + ]; + buildable = true; + modules = [ + "Paths_haskell_language_server" + "Ide/Arguments" + "Ide/Main" + "Ide/Version" + ]; + hsSourceDirs = [ "src" ]; + }; + exes = { + "haskell-language-server" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."binary" or (errorHandler.buildDepError "binary")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq")) + (hsPkgs."floskell" or (errorHandler.buildDepError "floskell")) + (hsPkgs."fourmolu" or (errorHandler.buildDepError "fourmolu")) + (hsPkgs."ghc" or (errorHandler.buildDepError "ghc")) + (hsPkgs."ghc-boot-th" or (errorHandler.buildDepError "ghc-boot-th")) + (hsPkgs."ghcide" or (errorHandler.buildDepError "ghcide")) + (hsPkgs."hashable" or (errorHandler.buildDepError "hashable")) + (hsPkgs."haskell-language-server" or (errorHandler.buildDepError "haskell-language-server")) + (hsPkgs."haskell-lsp" or (errorHandler.buildDepError "haskell-lsp")) + (hsPkgs."hls-plugin-api" or (errorHandler.buildDepError "hls-plugin-api")) + (hsPkgs."lens" or (errorHandler.buildDepError "lens")) + (hsPkgs."ormolu" or (errorHandler.buildDepError "ormolu")) + (hsPkgs."regex-tdfa" or (errorHandler.buildDepError "regex-tdfa")) + (hsPkgs."retrie" or (errorHandler.buildDepError "retrie")) + (hsPkgs."hslogger" or (errorHandler.buildDepError "hslogger")) + (hsPkgs."optparse-applicative" or (errorHandler.buildDepError "optparse-applicative")) + (hsPkgs."mtl" or (errorHandler.buildDepError "mtl")) + (hsPkgs."safe-exceptions" or (errorHandler.buildDepError "safe-exceptions")) + (hsPkgs."shake" or (errorHandler.buildDepError "shake")) + (hsPkgs."stylish-haskell" or (errorHandler.buildDepError "stylish-haskell")) + (hsPkgs."temporary" or (errorHandler.buildDepError "temporary")) + (hsPkgs."syb" or (errorHandler.buildDepError "syb")) + (hsPkgs."time" or (errorHandler.buildDepError "time")) + (hsPkgs."transformers" or (errorHandler.buildDepError "transformers")) + (hsPkgs."unordered-containers" or (errorHandler.buildDepError "unordered-containers")) + (hsPkgs."ghc-source-gen" or (errorHandler.buildDepError "ghc-source-gen")) + (hsPkgs."refinery" or (errorHandler.buildDepError "refinery")) + (hsPkgs."ghc-exactprint" or (errorHandler.buildDepError "ghc-exactprint")) + (hsPkgs."fingertree" or (errorHandler.buildDepError "fingertree")) + ] ++ (pkgs.lib).optional (flags.agpl) (hsPkgs."brittany" or (errorHandler.buildDepError "brittany")); + buildable = true; + modules = [ + "Ide/Plugin/Eval" + "Ide/Plugin/Example" + "Ide/Plugin/Example2" + "Ide/Plugin/Floskell" + "Ide/Plugin/Fourmolu" + "Ide/Plugin/ImportLens" + "Ide/Plugin/Ormolu" + "Ide/Plugin/Pragmas" + "Ide/Plugin/Retrie" + "Ide/Plugin/StylishHaskell" + "Ide/Plugin/Tactic" + "Ide/Plugin/Tactic/CodeGen" + "Ide/Plugin/Tactic/Context" + "Ide/Plugin/Tactic/Debug" + "Ide/Plugin/Tactic/GHC" + "Ide/Plugin/Tactic/Judgements" + "Ide/Plugin/Tactic/Machinery" + "Ide/Plugin/Tactic/Naming" + "Ide/Plugin/Tactic/Range" + "Ide/Plugin/Tactic/Tactics" + "Ide/Plugin/Tactic/Types" + "Ide/Plugin/Tactic/TestTypes" + "Ide/TreeTransform" + ] ++ (pkgs.lib).optional (flags.agpl) "Ide/Plugin/Brittany"; + hsSourceDirs = [ "exe" "plugins/default/src" "plugins/tactics/src" ]; + includeDirs = [ "include" ]; + mainPath = (([ + "Main.hs" + ] ++ (pkgs.lib).optional (flags.agpl) "") ++ (pkgs.lib).optional (flags.pedantic) "") ++ (pkgs.lib).optional (flags.agpl) ""; + }; + "haskell-language-server-wrapper" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."ghc" or (errorHandler.buildDepError "ghc")) + (hsPkgs."ghc-paths" or (errorHandler.buildDepError "ghc-paths")) + (hsPkgs."gitrev" or (errorHandler.buildDepError "gitrev")) + (hsPkgs."haskell-language-server" or (errorHandler.buildDepError "haskell-language-server")) + (hsPkgs."hie-bios" or (errorHandler.buildDepError "hie-bios")) + (hsPkgs."optparse-applicative" or (errorHandler.buildDepError "optparse-applicative")) + (hsPkgs."optparse-simple" or (errorHandler.buildDepError "optparse-simple")) + (hsPkgs."process" or (errorHandler.buildDepError "process")) + ]; + buildable = true; + modules = [ "Paths_haskell_language_server" ]; + hsSourceDirs = [ "exe" ]; + mainPath = ([ + "Wrapper.hs" + ] ++ (pkgs.lib).optional (flags.agpl) "") ++ (pkgs.lib).optional (flags.pedantic) ""; + }; + }; + tests = { + "func-test" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."blaze-markup" or (errorHandler.buildDepError "blaze-markup")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."data-default" or (errorHandler.buildDepError "data-default")) + (hsPkgs."haskell-lsp" or (errorHandler.buildDepError "haskell-lsp")) + (hsPkgs."hie-bios" or (errorHandler.buildDepError "hie-bios")) + (hsPkgs."hls-plugin-api" or (errorHandler.buildDepError "hls-plugin-api")) + (hsPkgs."hslogger" or (errorHandler.buildDepError "hslogger")) + (hsPkgs."hspec" or (errorHandler.buildDepError "hspec")) + (hsPkgs."hspec-core" or (errorHandler.buildDepError "hspec-core")) + (hsPkgs."lsp-test" or (errorHandler.buildDepError "lsp-test")) + (hsPkgs."stm" or (errorHandler.buildDepError "stm")) + (hsPkgs."tasty-hunit" or (errorHandler.buildDepError "tasty-hunit")) + (hsPkgs."temporary" or (errorHandler.buildDepError "temporary")) + (hsPkgs."transformers" or (errorHandler.buildDepError "transformers")) + (hsPkgs."unordered-containers" or (errorHandler.buildDepError "unordered-containers")) + (hsPkgs."yaml" or (errorHandler.buildDepError "yaml")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."lens" or (errorHandler.buildDepError "lens")) + (hsPkgs."tasty" or (errorHandler.buildDepError "tasty")) + (hsPkgs."tasty-ant-xml" or (errorHandler.buildDepError "tasty-ant-xml")) + (hsPkgs."tasty-expected-failure" or (errorHandler.buildDepError "tasty-expected-failure")) + (hsPkgs."tasty-golden" or (errorHandler.buildDepError "tasty-golden")) + (hsPkgs."tasty-rerun" or (errorHandler.buildDepError "tasty-rerun")) + ]; + build-tools = [ + (hsPkgs.buildPackages.haskell-language-server or (pkgs.buildPackages.haskell-language-server or (errorHandler.buildToolDepError "haskell-language-server"))) + (hsPkgs.buildPackages.ghcide or (pkgs.buildPackages.ghcide or (errorHandler.buildToolDepError "ghcide"))) + ]; + buildable = true; + modules = [ + "Test/Hls/Util" + "Command" + "Completion" + "Deferred" + "Definition" + "Diagnostic" + "Eval" + "Format" + "FunctionalBadProject" + "FunctionalCodeAction" + "FunctionalLiquid" + "HieBios" + "Highlight" + "Progress" + "Reference" + "Rename" + "Symbol" + "TypeDefinition" + "Tactic" + "Ide/Plugin/Tactic/TestTypes" + ]; + hsSourceDirs = [ + "test/utils" + "test/functional" + "plugins/tactics/src" + ]; + mainPath = [ "Main.hs" ]; + }; + "wrapper-test" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."blaze-markup" or (errorHandler.buildDepError "blaze-markup")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."data-default" or (errorHandler.buildDepError "data-default")) + (hsPkgs."haskell-lsp" or (errorHandler.buildDepError "haskell-lsp")) + (hsPkgs."hie-bios" or (errorHandler.buildDepError "hie-bios")) + (hsPkgs."hls-plugin-api" or (errorHandler.buildDepError "hls-plugin-api")) + (hsPkgs."hslogger" or (errorHandler.buildDepError "hslogger")) + (hsPkgs."hspec" or (errorHandler.buildDepError "hspec")) + (hsPkgs."hspec-core" or (errorHandler.buildDepError "hspec-core")) + (hsPkgs."lsp-test" or (errorHandler.buildDepError "lsp-test")) + (hsPkgs."stm" or (errorHandler.buildDepError "stm")) + (hsPkgs."tasty-hunit" or (errorHandler.buildDepError "tasty-hunit")) + (hsPkgs."temporary" or (errorHandler.buildDepError "temporary")) + (hsPkgs."transformers" or (errorHandler.buildDepError "transformers")) + (hsPkgs."unordered-containers" or (errorHandler.buildDepError "unordered-containers")) + (hsPkgs."yaml" or (errorHandler.buildDepError "yaml")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."process" or (errorHandler.buildDepError "process")) + (hsPkgs."tasty" or (errorHandler.buildDepError "tasty")) + (hsPkgs."tasty-ant-xml" or (errorHandler.buildDepError "tasty-ant-xml")) + ]; + build-tools = [ + (hsPkgs.buildPackages.haskell-language-server or (pkgs.buildPackages.haskell-language-server or (errorHandler.buildToolDepError "haskell-language-server"))) + ]; + buildable = true; + modules = [ "Test/Hls/Util" ]; + hsSourceDirs = [ "test/utils" "test/wrapper" ]; + mainPath = [ "Main.hs" ]; + }; + }; + }; + } // rec { src = (pkgs.lib).mkDefault ../.; } \ No newline at end of file diff --git a/nix/materialized/haskell-language-server/.plan.nix/hls-plugin-api.nix b/nix/materialized/haskell-language-server/.plan.nix/hls-plugin-api.nix new file mode 100644 index 00000000000..b1460486c5b --- /dev/null +++ b/nix/materialized/haskell-language-server/.plan.nix/hls-plugin-api.nix @@ -0,0 +1,66 @@ +{ system + , compiler + , flags + , pkgs + , hsPkgs + , pkgconfPkgs + , errorHandler + , config + , ... }: + { + flags = { pedantic = false; }; + package = { + specVersion = "2.2"; + identifier = { name = "hls-plugin-api"; version = "0.4.1.0"; }; + license = "Apache-2.0"; + copyright = "Alan Zimmerman"; + maintainer = "alan.zimm@gmail.com (for now)"; + author = "Many,TBD when we release"; + homepage = "https://github.com/haskell/haskell-language-server/hls-plugin-api"; + url = ""; + synopsis = "Haskell Language Server API for plugin communication"; + description = "Please see the README on GitHub at "; + buildType = "Simple"; + isLocal = true; + detailLevel = "FullDetails"; + licenseFiles = [ "LICENSE" ]; + dataDir = ""; + dataFiles = []; + extraSrcFiles = []; + extraTmpFiles = []; + extraDocFiles = []; + }; + components = { + "library" = { + depends = [ + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."data-default" or (errorHandler.buildDepError "data-default")) + (hsPkgs."Diff" or (errorHandler.buildDepError "Diff")) + (hsPkgs."ghc" or (errorHandler.buildDepError "ghc")) + (hsPkgs."ghc-boot-th" or (errorHandler.buildDepError "ghc-boot-th")) + (hsPkgs."ghcide" or (errorHandler.buildDepError "ghcide")) + (hsPkgs."haskell-lsp" or (errorHandler.buildDepError "haskell-lsp")) + (hsPkgs."hslogger" or (errorHandler.buildDepError "hslogger")) + (hsPkgs."lens" or (errorHandler.buildDepError "lens")) + (hsPkgs."process" or (errorHandler.buildDepError "process")) + (hsPkgs."regex-tdfa" or (errorHandler.buildDepError "regex-tdfa")) + (hsPkgs."shake" or (errorHandler.buildDepError "shake")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."unordered-containers" or (errorHandler.buildDepError "unordered-containers")) + ]; + buildable = true; + modules = [ + "Ide/Logger" + "Ide/Plugin" + "Ide/Plugin/Config" + "Ide/Plugin/Formatter" + "Ide/Plugin/GhcIde" + "Ide/PluginUtils" + "Ide/Types" + ]; + hsSourceDirs = [ "src" ]; + }; + }; + } // rec { src = (pkgs.lib).mkDefault ../hls-plugin-api; } \ No newline at end of file diff --git a/nix/materialized/haskell-language-server/default.nix b/nix/materialized/haskell-language-server/default.nix new file mode 100644 index 00000000000..a583237b1be --- /dev/null +++ b/nix/materialized/haskell-language-server/default.nix @@ -0,0 +1,415 @@ +{ + pkgs = hackage: + { + packages = { + "monad-dijkstra".revision = (((hackage."monad-dijkstra")."0.1.1.3").revisions).default; + "lsp-test".revision = (((hackage."lsp-test")."0.11.0.7").revisions).default; + "lsp-test".flags.dummyserver = false; + "haddock-library".revision = (((hackage."haddock-library")."1.9.0").revisions).default; + "void".revision = (((hackage."void")."0.7.3").revisions).default; + "void".flags.safe = false; + "semigroupoids".revision = (((hackage."semigroupoids")."5.3.4").revisions).default; + "semigroupoids".flags.comonad = true; + "semigroupoids".flags.doctests = true; + "semigroupoids".flags.unordered-containers = true; + "semigroupoids".flags.distributive = true; + "semigroupoids".flags.tagged = true; + "semigroupoids".flags.containers = true; + "semigroupoids".flags.contravariant = true; + "free".revision = (((hackage."free")."5.1.3").revisions).default; + "tf-random".revision = (((hackage."tf-random")."0.5").revisions).default; + "ghc".revision = (((hackage."ghc")."8.6.5").revisions).default; + "exceptions".revision = (((hackage."exceptions")."0.10.4").revisions).default; + "exceptions".flags.transformers-0-4 = true; + "shake".revision = (((hackage."shake")."0.19.1").revisions).default; + "shake".flags.portable = false; + "shake".flags.embed-files = false; + "shake".flags.cloud = false; + "ghc-paths".revision = (((hackage."ghc-paths")."0.1.0.12").revisions).default; + "binary".revision = (((hackage."binary")."0.8.6.0").revisions).default; + "ghc-boot".revision = (((hackage."ghc-boot")."8.6.5").revisions).default; + "regex-tdfa".revision = (((hackage."regex-tdfa")."1.3.1.0").revisions).default; + "regex-tdfa".flags.force-o2 = false; + "hslogger".revision = (((hackage."hslogger")."1.3.1.0").revisions).default; + "hslogger".flags.network--gt-3_0_0 = true; + "ghc-prim".revision = (((hackage."ghc-prim")."0.5.3").revisions).default; + "utf8-string".revision = (((hackage."utf8-string")."1.0.1.1").revisions).default; + "rope-utf16-splay".revision = (((hackage."rope-utf16-splay")."0.3.1.0").revisions).default; + "old-time".revision = (((hackage."old-time")."1.1.0.3").revisions).default; + "bifunctors".revision = (((hackage."bifunctors")."5.5.7").revisions).default; + "bifunctors".flags.semigroups = true; + "bifunctors".flags.tagged = true; + "extra".revision = (((hackage."extra")."1.7.8").revisions).default; + "logict".revision = (((hackage."logict")."0.7.0.3").revisions).default; + "MonadRandom".revision = (((hackage."MonadRandom")."0.5.2").revisions).default; + "split".revision = (((hackage."split")."0.2.3.4").revisions).default; + "stm".revision = (((hackage."stm")."2.5.0.0").revisions).default; + "czipwith".revision = (((hackage."czipwith")."1.0.1.3").revisions).default; + "base-compat-batteries".revision = (((hackage."base-compat-batteries")."0.11.2").revisions).default; + "case-insensitive".revision = (((hackage."case-insensitive")."1.2.1.0").revisions).default; + "unsafe".revision = (((hackage."unsafe")."0.0").revisions).default; + "unix".revision = (((hackage."unix")."2.7.2.2").revisions).default; + "ghc-heap".revision = (((hackage."ghc-heap")."8.6.5").revisions).default; + "tasty-quickcheck".revision = (((hackage."tasty-quickcheck")."0.10.1.1").revisions).default; + "mtl".revision = (((hackage."mtl")."2.2.2").revisions).default; + "network-uri".revision = (((hackage."network-uri")."2.6.3.0").revisions).default; + "regex-base".revision = (((hackage."regex-base")."0.94.0.0").revisions).default; + "zlib".revision = (((hackage."zlib")."0.6.2.2").revisions).default; + "zlib".flags.non-blocking-ffi = false; + "zlib".flags.bundled-c-zlib = false; + "zlib".flags.pkg-config = false; + "rts".revision = (((hackage."rts")."1.0").revisions).default; + "mmorph".revision = (((hackage."mmorph")."1.1.3").revisions).default; + "cmdargs".revision = (((hackage."cmdargs")."0.10.20").revisions).default; + "cmdargs".flags.testprog = false; + "cmdargs".flags.quotation = true; + "fourmolu".revision = (((hackage."fourmolu")."0.2.0.0").revisions).default; + "fourmolu".flags.dev = false; + "ghci".revision = (((hackage."ghci")."8.6.5").revisions).default; + "js-flot".revision = (((hackage."js-flot")."0.8.3").revisions).default; + "retrie".revision = (((hackage."retrie")."0.1.1.1").revisions).default; + "retrie".flags.buildexecutable = true; + "optparse-simple".revision = (((hackage."optparse-simple")."0.1.1.3").revisions).default; + "optparse-simple".flags.build-example = false; + "ghc-source-gen".revision = (((hackage."ghc-source-gen")."0.4.0.0").revisions).default; + "alex".revision = (((hackage."alex")."3.2.5").revisions).default; + "alex".flags.small_base = true; + "clock".revision = (((hackage."clock")."0.8").revisions).default; + "clock".flags.llvm = false; + "deque".revision = (((hackage."deque")."0.4.3").revisions).default; + "safe-exceptions".revision = (((hackage."safe-exceptions")."0.1.7.1").revisions).default; + "adjunctions".revision = (((hackage."adjunctions")."4.4").revisions).default; + "invariant".revision = (((hackage."invariant")."0.5.3").revisions).default; + "generic-deriving".revision = (((hackage."generic-deriving")."1.13.1").revisions).default; + "generic-deriving".flags.base-4-9 = true; + "syb".revision = (((hackage."syb")."0.7.1").revisions).default; + "distributive".revision = (((hackage."distributive")."0.6.2").revisions).default; + "distributive".flags.semigroups = true; + "distributive".flags.tagged = true; + "primes".revision = (((hackage."primes")."0.2.1.0").revisions).default; + "QuickCheck".revision = (((hackage."QuickCheck")."2.14.1").revisions).default; + "QuickCheck".flags.templatehaskell = true; + "QuickCheck".flags.old-random = true; + "scientific".revision = (((hackage."scientific")."0.3.6.2").revisions).default; + "scientific".flags.integer-simple = false; + "scientific".flags.bytestring-builder = false; + "tasty".revision = (((hackage."tasty")."1.3.1").revisions).default; + "tasty".flags.clock = true; + "hspec-discover".revision = (((hackage."hspec-discover")."2.7.4").revisions).default; + "parallel".revision = (((hackage."parallel")."3.2.2.0").revisions).default; + "deepseq".revision = (((hackage."deepseq")."1.4.4.0").revisions).default; + "random".revision = (((hackage."random")."1.1").revisions).default; + "temporary".revision = (((hackage."temporary")."1.3").revisions).default; + "record-dot-preprocessor".revision = (((hackage."record-dot-preprocessor")."0.2.7").revisions).default; + "uuid-types".revision = (((hackage."uuid-types")."1.0.3").revisions).default; + "optparse-applicative".revision = (((hackage."optparse-applicative")."0.15.1.0").revisions).default; + "network".revision = (((hackage."network")."3.1.0.1").revisions).default; + "hie-bios".revision = (((hackage."hie-bios")."0.7.1").revisions).default; + "splitmix".revision = (((hackage."splitmix")."0.1.0.2").revisions).default; + "splitmix".flags.optimised-mixer = false; + "multistate".revision = (((hackage."multistate")."0.8.0.3").revisions).default; + "multistate".flags.build-example = false; + "async".revision = (((hackage."async")."2.2.2").revisions).default; + "async".flags.bench = false; + "ghc-typelits-knownnat".revision = (((hackage."ghc-typelits-knownnat")."0.7.3").revisions).default; + "ghc-typelits-knownnat".flags.deverror = false; + "dlist".revision = (((hackage."dlist")."0.8.0.8").revisions).default; + "conduit-parse".revision = (((hackage."conduit-parse")."0.2.1.0").revisions).default; + "conduit-parse".flags.enable-hlint-test = false; + "conduit".revision = (((hackage."conduit")."1.3.3").revisions).default; + "implicit-hie-cradle".revision = (((hackage."implicit-hie-cradle")."0.2.0.1").revisions).default; + "implicit-hie".revision = (((hackage."implicit-hie")."0.1.2.0").revisions).default; + "semigroups".revision = (((hackage."semigroups")."0.19.1").revisions).default; + "semigroups".flags.bytestring = true; + "semigroups".flags.unordered-containers = true; + "semigroups".flags.text = true; + "semigroups".flags.tagged = true; + "semigroups".flags.containers = true; + "semigroups".flags.binary = true; + "semigroups".flags.hashable = true; + "semigroups".flags.transformers = true; + "semigroups".flags.deepseq = true; + "semigroups".flags.bytestring-builder = false; + "semigroups".flags.template-haskell = true; + "data-default".revision = (((hackage."data-default")."0.7.1.1").revisions).default; + "HUnit".revision = (((hackage."HUnit")."1.6.0.0").revisions).default; + "data-default-instances-old-locale".revision = (((hackage."data-default-instances-old-locale")."0.0.1").revisions).default; + "uniplate".revision = (((hackage."uniplate")."1.6.12").revisions).default; + "uniplate".flags.separate_syb = true; + "uniplate".flags.typeable_fingerprint = true; + "parsec".revision = (((hackage."parsec")."3.1.13.0").revisions).default; + "hsc2hs".revision = (((hackage."hsc2hs")."0.68.7").revisions).default; + "hsc2hs".flags.in-ghc-tree = false; + "directory".revision = (((hackage."directory")."1.3.3.0").revisions).default; + "prettyprinter-ansi-terminal".revision = (((hackage."prettyprinter-ansi-terminal")."1.1.2").revisions).default; + "yaml".revision = (((hackage."yaml")."0.11.5.0").revisions).default; + "yaml".flags.no-exe = true; + "yaml".flags.no-examples = true; + "stylish-haskell".revision = (((hackage."stylish-haskell")."0.12.2.0").revisions).default; + "tasty-ant-xml".revision = (((hackage."tasty-ant-xml")."1.1.7").revisions).default; + "transformers-compat".revision = (((hackage."transformers-compat")."0.6.6").revisions).default; + "transformers-compat".flags.five = false; + "transformers-compat".flags.generic-deriving = true; + "transformers-compat".flags.two = false; + "transformers-compat".flags.five-three = true; + "transformers-compat".flags.mtl = true; + "transformers-compat".flags.four = false; + "transformers-compat".flags.three = false; + "template-haskell".revision = (((hackage."template-haskell")."2.14.0.0").revisions).default; + "hspec-expectations".revision = (((hackage."hspec-expectations")."0.8.2").revisions).default; + "mono-traversable".revision = (((hackage."mono-traversable")."1.0.15.1").revisions).default; + "psqueues".revision = (((hackage."psqueues")."0.2.7.2").revisions).default; + "vector".revision = (((hackage."vector")."0.12.1.2").revisions).default; + "vector".flags.unsafechecks = false; + "vector".flags.internalchecks = false; + "vector".flags.wall = false; + "vector".flags.boundschecks = true; + "call-stack".revision = (((hackage."call-stack")."0.2.0").revisions).default; + "primitive".revision = (((hackage."primitive")."0.7.1.0").revisions).default; + "profunctors".revision = (((hackage."profunctors")."5.6").revisions).default; + "safe".revision = (((hackage."safe")."0.3.19").revisions).default; + "blaze-builder".revision = (((hackage."blaze-builder")."0.4.1.0").revisions).default; + "base-compat".revision = (((hackage."base-compat")."0.11.2").revisions).default; + "js-jquery".revision = (((hackage."js-jquery")."3.3.1").revisions).default; + "strict-list".revision = (((hackage."strict-list")."0.1.5").revisions).default; + "time-compat".revision = (((hackage."time-compat")."1.9.3").revisions).default; + "time-compat".flags.old-locale = false; + "ansi-terminal".revision = (((hackage."ansi-terminal")."0.10.3").revisions).default; + "ansi-terminal".flags.example = false; + "quickcheck-instances".revision = (((hackage."quickcheck-instances")."0.3.23").revisions).default; + "quickcheck-instances".flags.bytestring-builder = false; + "tagged".revision = (((hackage."tagged")."0.8.6").revisions).default; + "tagged".flags.transformers = true; + "tagged".flags.deepseq = true; + "parsers".revision = (((hackage."parsers")."0.12.10").revisions).default; + "parsers".flags.parsec = true; + "parsers".flags.binary = true; + "parsers".flags.attoparsec = true; + "haskell-src-exts".revision = (((hackage."haskell-src-exts")."1.23.1").revisions).default; + "lens".revision = (((hackage."lens")."4.19.2").revisions).default; + "lens".flags.j = false; + "lens".flags.test-properties = true; + "lens".flags.old-inline-pragmas = false; + "lens".flags.test-templates = true; + "lens".flags.trustworthy = true; + "lens".flags.test-doctests = true; + "lens".flags.benchmark-uniplate = false; + "lens".flags.inlining = true; + "lens".flags.dump-splices = false; + "lens".flags.test-hunit = true; + "lens".flags.safe = false; + "sorted-list".revision = (((hackage."sorted-list")."0.2.1.0").revisions).default; + "unliftio-core".revision = (((hackage."unliftio-core")."0.2.0.1").revisions).default; + "ghc-lib-parser".revision = (((hackage."ghc-lib-parser")."8.10.2.20200916").revisions).default; + "containers".revision = (((hackage."containers")."0.6.0.1").revisions).default; + "integer-logarithms".revision = (((hackage."integer-logarithms")."1.0.3").revisions).default; + "integer-logarithms".flags.check-bounds = false; + "integer-logarithms".flags.integer-gmp = true; + "reflection".revision = (((hackage."reflection")."2.1.6").revisions).default; + "reflection".flags.slow = false; + "reflection".flags.template-haskell = true; + "these".revision = (((hackage."these")."1.1.1.1").revisions).default; + "these".flags.assoc = true; + "monoid-subclasses".revision = (((hackage."monoid-subclasses")."1.0.1").revisions).default; + "streaming-commons".revision = (((hackage."streaming-commons")."0.2.2.1").revisions).default; + "streaming-commons".flags.use-bytestring-builder = false; + "ghc-check".revision = (((hackage."ghc-check")."0.5.0.1").revisions).default; + "fingertree".revision = (((hackage."fingertree")."0.1.4.2").revisions).default; + "bytestring".revision = (((hackage."bytestring")."0.10.8.2").revisions).default; + "ansi-wl-pprint".revision = (((hackage."ansi-wl-pprint")."0.6.9").revisions).default; + "ansi-wl-pprint".flags.example = false; + "data-tree-print".revision = (((hackage."data-tree-print")."0.1.0.2").revisions).default; + "butcher".revision = (((hackage."butcher")."1.3.3.2").revisions).default; + "microlens-th".revision = (((hackage."microlens-th")."0.4.3.6").revisions).default; + "setenv".revision = (((hackage."setenv")."0.1.1.3").revisions).default; + "cryptohash-sha1".revision = (((hackage."cryptohash-sha1")."0.11.100.1").revisions).default; + "heaps".revision = (((hackage."heaps")."0.3.6.1").revisions).default; + "old-locale".revision = (((hackage."old-locale")."1.0.0.7").revisions).default; + "wcwidth".revision = (((hackage."wcwidth")."0.0.2").revisions).default; + "wcwidth".flags.split-base = true; + "wcwidth".flags.cli = false; + "StateVar".revision = (((hackage."StateVar")."1.2").revisions).default; + "typed-process".revision = (((hackage."typed-process")."0.2.6.0").revisions).default; + "charset".revision = (((hackage."charset")."0.3.7.1").revisions).default; + "fuzzy".revision = (((hackage."fuzzy")."0.1.0.0").revisions).default; + "contravariant".revision = (((hackage."contravariant")."1.5.2").revisions).default; + "contravariant".flags.semigroups = true; + "contravariant".flags.tagged = true; + "contravariant".flags.statevar = true; + "data-default-instances-dlist".revision = (((hackage."data-default-instances-dlist")."0.0.1").revisions).default; + "HsYAML".revision = (((hackage."HsYAML")."0.2.1.0").revisions).default; + "HsYAML".flags.exe = false; + "parser-combinators".revision = (((hackage."parser-combinators")."1.2.1").revisions).default; + "parser-combinators".flags.dev = false; + "blaze-markup".revision = (((hackage."blaze-markup")."0.8.2.7").revisions).default; + "tasty-golden".revision = (((hackage."tasty-golden")."2.3.4").revisions).default; + "tasty-golden".flags.build-example = false; + "tasty-expected-failure".revision = (((hackage."tasty-expected-failure")."0.12.1").revisions).default; + "text".revision = (((hackage."text")."1.2.3.1").revisions).default; + "Cabal".revision = (((hackage."Cabal")."2.4.0.1").revisions).default; + "assoc".revision = (((hackage."assoc")."1.0.2").revisions).default; + "Diff".revision = (((hackage."Diff")."0.4.0").revisions).default; + "unordered-containers".revision = (((hackage."unordered-containers")."0.2.13.0").revisions).default; + "unordered-containers".flags.debug = false; + "aeson-pretty".revision = (((hackage."aeson-pretty")."0.8.8").revisions).default; + "aeson-pretty".flags.lib-only = false; + "base".revision = (((hackage."base")."4.12.0.0").revisions).default; + "comonad".revision = (((hackage."comonad")."5.0.6").revisions).default; + "comonad".flags.distributive = true; + "comonad".flags.test-doctests = true; + "comonad".flags.containers = true; + "hspec".revision = (((hackage."hspec")."2.7.4").revisions).default; + "time".revision = (((hackage."time")."1.8.0.2").revisions).default; + "data-default-class".revision = (((hackage."data-default-class")."0.1.2.0").revisions).default; + "terminfo".revision = (((hackage."terminfo")."0.4.1.2").revisions).default; + "base16-bytestring".revision = (((hackage."base16-bytestring")."0.1.1.7").revisions).default; + "vector-algorithms".revision = (((hackage."vector-algorithms")."0.8.0.3").revisions).default; + "vector-algorithms".flags.unsafechecks = false; + "vector-algorithms".flags.internalchecks = false; + "vector-algorithms".flags.llvm = false; + "vector-algorithms".flags.boundschecks = true; + "vector-algorithms".flags.bench = true; + "vector-algorithms".flags.properties = true; + "prettyprinter".revision = (((hackage."prettyprinter")."1.7.0").revisions).default; + "prettyprinter".flags.buildreadme = false; + "tasty-rerun".revision = (((hackage."tasty-rerun")."1.1.17").revisions).default; + "record-hasfield".revision = (((hackage."record-hasfield")."1.0").revisions).default; + "haskell-lsp-types".revision = (((hackage."haskell-lsp-types")."0.22.0.0").revisions).default; + "tasty-hunit".revision = (((hackage."tasty-hunit")."0.10.0.2").revisions).default; + "refinery".revision = (((hackage."refinery")."0.2.0.0").revisions).default; + "transformers".revision = (((hackage."transformers")."0.5.6.2").revisions).default; + "hashable".revision = (((hackage."hashable")."1.3.0.0").revisions).default; + "hashable".flags.sse2 = true; + "hashable".flags.integer-gmp = true; + "hashable".flags.sse41 = false; + "hashable".flags.examples = false; + "quickcheck-io".revision = (((hackage."quickcheck-io")."0.2.0").revisions).default; + "data-default-instances-containers".revision = (((hackage."data-default-instances-containers")."0.0.1").revisions).default; + "githash".revision = (((hackage."githash")."0.1.4.0").revisions).default; + "attoparsec".revision = (((hackage."attoparsec")."0.13.2.4").revisions).default; + "attoparsec".flags.developer = false; + "colour".revision = (((hackage."colour")."2.3.5").revisions).default; + "transformers-base".revision = (((hackage."transformers-base")."0.4.5.2").revisions).default; + "transformers-base".flags.orphaninstances = true; + "happy".revision = (((hackage."happy")."1.20.0").revisions).default; + "file-embed".revision = (((hackage."file-embed")."0.0.13.0").revisions).default; + "floskell".revision = (((hackage."floskell")."0.10.5").revisions).default; + "strict".revision = (((hackage."strict")."0.3.2").revisions).default; + "strict".flags.split-base = true; + "hpc".revision = (((hackage."hpc")."0.6.0.3").revisions).default; + "filepath".revision = (((hackage."filepath")."1.4.2.1").revisions).default; + "ghc-exactprint".revision = (((hackage."ghc-exactprint")."0.6.3.2").revisions).default; + "ghc-exactprint".flags.roundtrip = false; + "ghc-exactprint".flags.dev = false; + "ghc-tcplugins-extra".revision = (((hackage."ghc-tcplugins-extra")."0.4").revisions).default; + "ghc-tcplugins-extra".flags.deverror = false; + "unbounded-delays".revision = (((hackage."unbounded-delays")."0.1.1.0").revisions).default; + "hspec-core".revision = (((hackage."hspec-core")."2.7.4").revisions).default; + "gitrev".revision = (((hackage."gitrev")."1.3.1").revisions).default; + "unix-compat".revision = (((hackage."unix-compat")."0.5.2").revisions).default; + "unix-compat".flags.old-time = false; + "monad-control".revision = (((hackage."monad-control")."1.0.2.3").revisions).default; + "process".revision = (((hackage."process")."1.6.5.0").revisions).default; + "kan-extensions".revision = (((hackage."kan-extensions")."5.2.1").revisions).default; + "network-bsd".revision = (((hackage."network-bsd")."2.8.1.0").revisions).default; + "monad-memo".revision = (((hackage."monad-memo")."0.5.3").revisions).default; + "filepattern".revision = (((hackage."filepattern")."0.1.2").revisions).default; + "libyaml".revision = (((hackage."libyaml")."0.1.2").revisions).default; + "libyaml".flags.system-libyaml = false; + "libyaml".flags.no-unicode = false; + "haskell-lsp".revision = (((hackage."haskell-lsp")."0.22.0.0").revisions).default; + "haskell-lsp".flags.demo = false; + "resourcet".revision = (((hackage."resourcet")."1.2.4.2").revisions).default; + "pretty".revision = (((hackage."pretty")."1.1.3.6").revisions).default; + "cabal-doctest".revision = (((hackage."cabal-doctest")."1.0.8").revisions).default; + "Glob".revision = (((hackage."Glob")."0.10.1").revisions).default; + "microlens".revision = (((hackage."microlens")."0.4.11.2").revisions).default; + "aeson".revision = (((hackage."aeson")."1.5.2.0").revisions).default; + "aeson".flags.cffi = false; + "aeson".flags.fast = false; + "aeson".flags.bytestring-builder = false; + "aeson".flags.developer = false; + "ormolu".revision = (((hackage."ormolu")."0.1.3.0").revisions).default; + "ormolu".flags.dev = false; + "ghc-boot-th".revision = (((hackage."ghc-boot-th")."8.6.5").revisions).default; + "random-shuffle".revision = (((hackage."random-shuffle")."0.0.4").revisions).default; + "base-orphans".revision = (((hackage."base-orphans")."0.8.3").revisions).default; + "js-dgtable".revision = (((hackage."js-dgtable")."0.5.2").revisions).default; + "HsYAML-aeson".revision = (((hackage."HsYAML-aeson")."0.2.0.0").revisions).default; + "th-abstraction".revision = (((hackage."th-abstraction")."0.3.2.0").revisions).default; + "array".revision = (((hackage."array")."0.5.3.0").revisions).default; + "ghc-typelits-natnormalise".revision = (((hackage."ghc-typelits-natnormalise")."0.7.2").revisions).default; + "ghc-typelits-natnormalise".flags.deverror = false; + "xml".revision = (((hackage."xml")."1.3.14").revisions).default; + "conduit-extra".revision = (((hackage."conduit-extra")."1.3.5").revisions).default; + "integer-gmp".revision = (((hackage."integer-gmp")."1.0.2.0").revisions).default; + }; + compiler = { + version = "8.6.5"; + nix-name = "ghc865"; + packages = { + "ghc" = "8.6.5"; + "binary" = "0.8.6.0"; + "ghc-boot" = "8.6.5"; + "ghc-prim" = "0.5.3"; + "stm" = "2.5.0.0"; + "unix" = "2.7.2.2"; + "ghc-heap" = "8.6.5"; + "mtl" = "2.2.2"; + "rts" = "1.0"; + "ghci" = "8.6.5"; + "deepseq" = "1.4.4.0"; + "parsec" = "3.1.13.0"; + "directory" = "1.3.3.0"; + "template-haskell" = "2.14.0.0"; + "containers" = "0.6.0.1"; + "bytestring" = "0.10.8.2"; + "text" = "1.2.3.1"; + "Cabal" = "2.4.0.1"; + "base" = "4.12.0.0"; + "time" = "1.8.0.2"; + "terminfo" = "0.4.1.2"; + "transformers" = "0.5.6.2"; + "hpc" = "0.6.0.3"; + "filepath" = "1.4.2.1"; + "process" = "1.6.5.0"; + "pretty" = "1.1.3.6"; + "ghc-boot-th" = "8.6.5"; + "array" = "0.5.3.0"; + "integer-gmp" = "1.0.2.0"; + }; + }; + }; + extras = hackage: + { + packages = { + brittany = ./.plan.nix/brittany.nix; + haskell-language-server = ./.plan.nix/haskell-language-server.nix; + ghcide = ./.plan.nix/ghcide.nix; + hls-plugin-api = ./.plan.nix/hls-plugin-api.nix; + }; + }; + modules = [ + ({ lib, ... }: + { + packages = { + "brittany" = { + flags = { + "brittany-dev-lib" = lib.mkOverride 900 false; + "brittany-test-perf" = lib.mkOverride 900 false; + }; + }; + "haskell-language-server" = { + flags = { + "agpl" = lib.mkOverride 900 true; + "pedantic" = lib.mkOverride 900 false; + }; + }; + "ghcide" = { flags = { "ghc-lib" = lib.mkOverride 900 false; }; }; + "hls-plugin-api" = { + flags = { "pedantic" = lib.mkOverride 900 false; }; + }; + }; + }) + ]; + } \ No newline at end of file diff --git a/nix/materialized/hlint/.plan.nix/hlint.nix b/nix/materialized/hlint/.plan.nix/hlint.nix new file mode 100644 index 00000000000..5d1df611ccf --- /dev/null +++ b/nix/materialized/hlint/.plan.nix/hlint.nix @@ -0,0 +1,158 @@ +{ system + , compiler + , flags + , pkgs + , hsPkgs + , pkgconfPkgs + , errorHandler + , config + , ... }: + { + flags = { threaded = true; gpl = true; ghc-lib = false; hsyaml = false; }; + package = { + specVersion = "1.18"; + identifier = { name = "hlint"; version = "3.2"; }; + license = "BSD-3-Clause"; + copyright = "Neil Mitchell 2006-2020"; + maintainer = "Neil Mitchell "; + author = "Neil Mitchell "; + homepage = "https://github.com/ndmitchell/hlint#readme"; + url = ""; + synopsis = "Source code suggestions"; + description = "HLint gives suggestions on how to improve your source code."; + buildType = "Simple"; + isLocal = true; + detailLevel = "FullDetails"; + licenseFiles = [ "LICENSE" ]; + dataDir = "data"; + dataFiles = [ + "hlint.yaml" + "default.yaml" + "Test.hs" + "report_template.html" + "hs-lint.el" + "hlint.1" + "hlint.ghci" + "HLint_QuickCheck.hs" + "HLint_TypeCheck.hs" + ]; + extraSrcFiles = []; + extraTmpFiles = []; + extraDocFiles = [ "README.md" "CHANGES.txt" ]; + }; + components = { + "library" = { + depends = (([ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."process" or (errorHandler.buildDepError "process")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."unordered-containers" or (errorHandler.buildDepError "unordered-containers")) + (hsPkgs."vector" or (errorHandler.buildDepError "vector")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."transformers" or (errorHandler.buildDepError "transformers")) + (hsPkgs."file-embed" or (errorHandler.buildDepError "file-embed")) + (hsPkgs."utf8-string" or (errorHandler.buildDepError "utf8-string")) + (hsPkgs."data-default" or (errorHandler.buildDepError "data-default")) + (hsPkgs."cpphs" or (errorHandler.buildDepError "cpphs")) + (hsPkgs."cmdargs" or (errorHandler.buildDepError "cmdargs")) + (hsPkgs."uniplate" or (errorHandler.buildDepError "uniplate")) + (hsPkgs."ansi-terminal" or (errorHandler.buildDepError "ansi-terminal")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."refact" or (errorHandler.buildDepError "refact")) + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."filepattern" or (errorHandler.buildDepError "filepattern")) + (hsPkgs."ghc-lib-parser-ex" or (errorHandler.buildDepError "ghc-lib-parser-ex")) + ] ++ (if !flags.ghc-lib && (compiler.isGhc && (compiler.version).ge "8.10.0") && (compiler.isGhc && (compiler.version).lt "8.11.0") + then [ + (hsPkgs."ghc" or (errorHandler.buildDepError "ghc")) + (hsPkgs."ghc-boot-th" or (errorHandler.buildDepError "ghc-boot-th")) + (hsPkgs."ghc-boot" or (errorHandler.buildDepError "ghc-boot")) + ] + else [ + (hsPkgs."ghc-lib-parser" or (errorHandler.buildDepError "ghc-lib-parser")) + ])) ++ (pkgs.lib).optional (flags.gpl) (hsPkgs."hscolour" or (errorHandler.buildDepError "hscolour"))) ++ (if flags.hsyaml + then [ + (hsPkgs."HsYAML" or (errorHandler.buildDepError "HsYAML")) + (hsPkgs."HsYAML-aeson" or (errorHandler.buildDepError "HsYAML-aeson")) + ] + else [ (hsPkgs."yaml" or (errorHandler.buildDepError "yaml")) ]); + buildable = true; + modules = [ + "Paths_hlint" + "Apply" + "CmdLine" + "Extension" + "Fixity" + "HLint" + "HsColour" + "Idea" + "Report" + "Util" + "Parallel" + "Refact" + "Timing" + "CC" + "EmbedData" + "Summary" + "Config/Compute" + "Config/Haskell" + "Config/Read" + "Config/Type" + "Config/Yaml" + "GHC/All" + "GHC/Util" + "GHC/Util/ApiAnnotation" + "GHC/Util/View" + "GHC/Util/Brackets" + "GHC/Util/DynFlags" + "GHC/Util/FreeVars" + "GHC/Util/HsDecl" + "GHC/Util/HsExpr" + "GHC/Util/SrcLoc" + "GHC/Util/Scope" + "GHC/Util/Unify" + "Hint/All" + "Hint/Bracket" + "Hint/Comment" + "Hint/Duplicate" + "Hint/Export" + "Hint/Extensions" + "Hint/Import" + "Hint/Lambda" + "Hint/List" + "Hint/ListRec" + "Hint/Match" + "Hint/Monad" + "Hint/Naming" + "Hint/NewType" + "Hint/Pattern" + "Hint/Pragma" + "Hint/Restrict" + "Hint/Smell" + "Hint/Type" + "Hint/Unsafe" + "Test/All" + "Test/Annotations" + "Test/InputOutput" + "Test/Util" + "Language/Haskell/HLint" + ]; + hsSourceDirs = [ "src" ]; + }; + exes = { + "hlint" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."hlint" or (errorHandler.buildDepError "hlint")) + ]; + buildable = true; + mainPath = [ + "src/Main.hs" + ] ++ (pkgs.lib).optional (flags.threaded) ""; + }; + }; + }; + } // rec { src = (pkgs.lib).mkDefault ../.; } \ No newline at end of file diff --git a/nix/materialized/hlint/default.nix b/nix/materialized/hlint/default.nix new file mode 100644 index 00000000000..5e072617c53 --- /dev/null +++ b/nix/materialized/hlint/default.nix @@ -0,0 +1,198 @@ +{ + pkgs = hackage: + { + packages = { + "ghc-lib-parser-ex".revision = (((hackage."ghc-lib-parser-ex")."8.10.0.16").revisions).default; + "ghc-lib-parser-ex".flags.auto = true; + "ghc-lib-parser-ex".flags.no-ghc-lib = false; + "exceptions".revision = (((hackage."exceptions")."0.10.4").revisions).default; + "exceptions".flags.transformers-0-4 = true; + "refact".revision = (((hackage."refact")."0.3.0.2").revisions).default; + "binary".revision = (((hackage."binary")."0.8.6.0").revisions).default; + "ghc-prim".revision = (((hackage."ghc-prim")."0.5.3").revisions).default; + "utf8-string".revision = (((hackage."utf8-string")."1.0.1.1").revisions).default; + "polyparse".revision = (((hackage."polyparse")."1.13").revisions).default; + "bifunctors".revision = (((hackage."bifunctors")."5.5.8").revisions).default; + "bifunctors".flags.semigroups = true; + "bifunctors".flags.tagged = true; + "extra".revision = (((hackage."extra")."1.7.8").revisions).default; + "split".revision = (((hackage."split")."0.2.3.4").revisions).default; + "data-fix".revision = (((hackage."data-fix")."0.3.0").revisions).default; + "stm".revision = (((hackage."stm")."2.5.0.0").revisions).default; + "base-compat-batteries".revision = (((hackage."base-compat-batteries")."0.11.2").revisions).default; + "unix".revision = (((hackage."unix")."2.7.2.2").revisions).default; + "mtl".revision = (((hackage."mtl")."2.2.2").revisions).default; + "rts".revision = (((hackage."rts")."1.0").revisions).default; + "cmdargs".revision = (((hackage."cmdargs")."0.10.20").revisions).default; + "cmdargs".flags.testprog = false; + "cmdargs".flags.quotation = true; + "alex".revision = (((hackage."alex")."3.2.5").revisions).default; + "alex".flags.small_base = true; + "clock".revision = (((hackage."clock")."0.8").revisions).default; + "clock".flags.llvm = false; + "syb".revision = (((hackage."syb")."0.7.1").revisions).default; + "distributive".revision = (((hackage."distributive")."0.6.2").revisions).default; + "distributive".flags.semigroups = true; + "distributive".flags.tagged = true; + "hscolour".revision = (((hackage."hscolour")."1.24.4").revisions).default; + "scientific".revision = (((hackage."scientific")."0.3.6.2").revisions).default; + "scientific".flags.integer-simple = false; + "scientific".flags.bytestring-builder = false; + "deepseq".revision = (((hackage."deepseq")."1.4.4.0").revisions).default; + "random".revision = (((hackage."random")."1.2.0").revisions).default; + "uuid-types".revision = (((hackage."uuid-types")."1.0.3").revisions).default; + "splitmix".revision = (((hackage."splitmix")."0.1.0.2").revisions).default; + "splitmix".flags.optimised-mixer = false; + "dlist".revision = (((hackage."dlist")."1.0").revisions).default; + "dlist".flags.werror = false; + "conduit".revision = (((hackage."conduit")."1.3.3").revisions).default; + "data-default".revision = (((hackage."data-default")."0.7.1.1").revisions).default; + "data-default-instances-old-locale".revision = (((hackage."data-default-instances-old-locale")."0.0.1").revisions).default; + "uniplate".revision = (((hackage."uniplate")."1.6.12").revisions).default; + "uniplate".flags.separate_syb = true; + "uniplate".flags.typeable_fingerprint = true; + "parsec".revision = (((hackage."parsec")."3.1.13.0").revisions).default; + "directory".revision = (((hackage."directory")."1.3.3.0").revisions).default; + "yaml".revision = (((hackage."yaml")."0.11.5.0").revisions).default; + "yaml".flags.no-exe = true; + "yaml".flags.no-examples = true; + "transformers-compat".revision = (((hackage."transformers-compat")."0.6.6").revisions).default; + "transformers-compat".flags.five = false; + "transformers-compat".flags.generic-deriving = true; + "transformers-compat".flags.two = false; + "transformers-compat".flags.five-three = true; + "transformers-compat".flags.mtl = true; + "transformers-compat".flags.four = false; + "transformers-compat".flags.three = false; + "template-haskell".revision = (((hackage."template-haskell")."2.14.0.0").revisions).default; + "mono-traversable".revision = (((hackage."mono-traversable")."1.0.15.1").revisions).default; + "vector".revision = (((hackage."vector")."0.12.1.2").revisions).default; + "vector".flags.unsafechecks = false; + "vector".flags.internalchecks = false; + "vector".flags.wall = false; + "vector".flags.boundschecks = true; + "primitive".revision = (((hackage."primitive")."0.7.1.0").revisions).default; + "base-compat".revision = (((hackage."base-compat")."0.11.2").revisions).default; + "time-compat".revision = (((hackage."time-compat")."1.9.3").revisions).default; + "time-compat".flags.old-locale = false; + "ansi-terminal".revision = (((hackage."ansi-terminal")."0.11").revisions).default; + "ansi-terminal".flags.example = false; + "tagged".revision = (((hackage."tagged")."0.8.6").revisions).default; + "tagged".flags.transformers = true; + "tagged".flags.deepseq = true; + "unliftio-core".revision = (((hackage."unliftio-core")."0.2.0.1").revisions).default; + "ghc-lib-parser".revision = (((hackage."ghc-lib-parser")."8.10.2.20200916").revisions).default; + "containers".revision = (((hackage."containers")."0.6.0.1").revisions).default; + "integer-logarithms".revision = (((hackage."integer-logarithms")."1.0.3").revisions).default; + "integer-logarithms".flags.check-bounds = false; + "integer-logarithms".flags.integer-gmp = true; + "these".revision = (((hackage."these")."1.1.1.1").revisions).default; + "these".flags.assoc = true; + "bytestring".revision = (((hackage."bytestring")."0.10.8.2").revisions).default; + "old-locale".revision = (((hackage."old-locale")."1.0.0.7").revisions).default; + "data-default-instances-dlist".revision = (((hackage."data-default-instances-dlist")."0.0.1").revisions).default; + "text".revision = (((hackage."text")."1.2.3.1").revisions).default; + "Cabal".revision = (((hackage."Cabal")."2.4.0.1").revisions).default; + "assoc".revision = (((hackage."assoc")."1.0.2").revisions).default; + "unordered-containers".revision = (((hackage."unordered-containers")."0.2.13.0").revisions).default; + "unordered-containers".flags.debug = false; + "base".revision = (((hackage."base")."4.12.0.0").revisions).default; + "comonad".revision = (((hackage."comonad")."5.0.6").revisions).default; + "comonad".flags.distributive = true; + "comonad".flags.test-doctests = true; + "comonad".flags.containers = true; + "time".revision = (((hackage."time")."1.8.0.2").revisions).default; + "data-default-class".revision = (((hackage."data-default-class")."0.1.2.0").revisions).default; + "vector-algorithms".revision = (((hackage."vector-algorithms")."0.8.0.3").revisions).default; + "vector-algorithms".flags.unsafechecks = false; + "vector-algorithms".flags.internalchecks = false; + "vector-algorithms".flags.llvm = false; + "vector-algorithms".flags.boundschecks = true; + "vector-algorithms".flags.bench = true; + "vector-algorithms".flags.properties = true; + "cpphs".revision = (((hackage."cpphs")."1.20.9.1").revisions).default; + "cpphs".flags.old-locale = false; + "transformers".revision = (((hackage."transformers")."0.5.6.2").revisions).default; + "hashable".revision = (((hackage."hashable")."1.3.0.0").revisions).default; + "hashable".flags.sse2 = true; + "hashable".flags.integer-gmp = true; + "hashable".flags.sse41 = false; + "hashable".flags.examples = false; + "data-default-instances-containers".revision = (((hackage."data-default-instances-containers")."0.0.1").revisions).default; + "attoparsec".revision = (((hackage."attoparsec")."0.13.2.4").revisions).default; + "attoparsec".flags.developer = false; + "colour".revision = (((hackage."colour")."2.3.5").revisions).default; + "happy".revision = (((hackage."happy")."1.20.0").revisions).default; + "file-embed".revision = (((hackage."file-embed")."0.0.13.0").revisions).default; + "strict".revision = (((hackage."strict")."0.4").revisions).default; + "strict".flags.assoc = true; + "hpc".revision = (((hackage."hpc")."0.6.0.3").revisions).default; + "filepath".revision = (((hackage."filepath")."1.4.2.1").revisions).default; + "process".revision = (((hackage."process")."1.6.5.0").revisions).default; + "filepattern".revision = (((hackage."filepattern")."0.1.2").revisions).default; + "libyaml".revision = (((hackage."libyaml")."0.1.2").revisions).default; + "libyaml".flags.system-libyaml = false; + "libyaml".flags.no-unicode = false; + "resourcet".revision = (((hackage."resourcet")."1.2.4.2").revisions).default; + "pretty".revision = (((hackage."pretty")."1.1.3.6").revisions).default; + "cabal-doctest".revision = (((hackage."cabal-doctest")."1.0.8").revisions).default; + "aeson".revision = (((hackage."aeson")."1.5.4.1").revisions).default; + "aeson".flags.cffi = false; + "aeson".flags.fast = false; + "aeson".flags.bytestring-builder = false; + "aeson".flags.developer = false; + "ghc-boot-th".revision = (((hackage."ghc-boot-th")."8.6.5").revisions).default; + "base-orphans".revision = (((hackage."base-orphans")."0.8.3").revisions).default; + "th-abstraction".revision = (((hackage."th-abstraction")."0.4.0.0").revisions).default; + "array".revision = (((hackage."array")."0.5.3.0").revisions).default; + "integer-gmp".revision = (((hackage."integer-gmp")."1.0.2.0").revisions).default; + }; + compiler = { + version = "8.6.5"; + nix-name = "ghc865"; + packages = { + "binary" = "0.8.6.0"; + "ghc-prim" = "0.5.3"; + "stm" = "2.5.0.0"; + "unix" = "2.7.2.2"; + "mtl" = "2.2.2"; + "rts" = "1.0"; + "deepseq" = "1.4.4.0"; + "parsec" = "3.1.13.0"; + "directory" = "1.3.3.0"; + "template-haskell" = "2.14.0.0"; + "containers" = "0.6.0.1"; + "bytestring" = "0.10.8.2"; + "text" = "1.2.3.1"; + "Cabal" = "2.4.0.1"; + "base" = "4.12.0.0"; + "time" = "1.8.0.2"; + "transformers" = "0.5.6.2"; + "hpc" = "0.6.0.3"; + "filepath" = "1.4.2.1"; + "process" = "1.6.5.0"; + "pretty" = "1.1.3.6"; + "ghc-boot-th" = "8.6.5"; + "array" = "0.5.3.0"; + "integer-gmp" = "1.0.2.0"; + }; + }; + }; + extras = hackage: + { packages = { hlint = ./.plan.nix/hlint.nix; }; }; + modules = [ + ({ lib, ... }: + { + packages = { + "hlint" = { + flags = { + "gpl" = lib.mkOverride 900 true; + "threaded" = lib.mkOverride 900 true; + "hsyaml" = lib.mkOverride 900 false; + "ghc-lib" = lib.mkOverride 900 false; + }; + }; + }; + }) + ]; + } \ No newline at end of file diff --git a/nix/materialized/hoogle/.plan.nix/hoogle.nix b/nix/materialized/hoogle/.plan.nix/hoogle.nix new file mode 100644 index 00000000000..4b79929313a --- /dev/null +++ b/nix/materialized/hoogle/.plan.nix/hoogle.nix @@ -0,0 +1,135 @@ +{ system + , compiler + , flags + , pkgs + , hsPkgs + , pkgconfPkgs + , errorHandler + , config + , ... }: + { + flags = {}; + package = { + specVersion = "1.18"; + identifier = { name = "hoogle"; version = "5.0.18"; }; + license = "BSD-3-Clause"; + copyright = "Neil Mitchell 2004-2020"; + maintainer = "Neil Mitchell "; + author = "Neil Mitchell "; + homepage = "https://hoogle.haskell.org/"; + url = ""; + synopsis = "Haskell API Search"; + description = "Hoogle is a Haskell API search engine, which allows you to\nsearch many standard Haskell libraries by either function name,\nor by approximate type signature."; + buildType = "Simple"; + isLocal = true; + detailLevel = "FullDetails"; + licenseFiles = [ "LICENSE" ]; + dataDir = ""; + dataFiles = [ + "misc/settings.txt" + "html/*.js" + "html/*.png" + "html/*.css" + "html/*.xml" + "html/*.html" + "html/plugin/*.css" + "html/plugin/*.js" + "html/plugin/*.png" + ]; + extraSrcFiles = [ "cbits/*.h" "cbits/*.c" ]; + extraTmpFiles = []; + extraDocFiles = [ "README.md" "CHANGES.txt" ]; + }; + components = { + "library" = { + depends = [ + (hsPkgs."QuickCheck" or (errorHandler.buildDepError "QuickCheck")) + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."blaze-html" or (errorHandler.buildDepError "blaze-html")) + (hsPkgs."blaze-markup" or (errorHandler.buildDepError "blaze-markup")) + (hsPkgs."binary" or (errorHandler.buildDepError "binary")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."cmdargs" or (errorHandler.buildDepError "cmdargs")) + (hsPkgs."conduit" or (errorHandler.buildDepError "conduit")) + (hsPkgs."conduit-extra" or (errorHandler.buildDepError "conduit-extra")) + (hsPkgs."connection" or (errorHandler.buildDepError "connection")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."foundation" or (errorHandler.buildDepError "foundation")) + (hsPkgs."old-locale" or (errorHandler.buildDepError "old-locale")) + (hsPkgs."hashable" or (errorHandler.buildDepError "hashable")) + (hsPkgs."haskell-src-exts" or (errorHandler.buildDepError "haskell-src-exts")) + (hsPkgs."http-conduit" or (errorHandler.buildDepError "http-conduit")) + (hsPkgs."http-types" or (errorHandler.buildDepError "http-types")) + (hsPkgs."js-flot" or (errorHandler.buildDepError "js-flot")) + (hsPkgs."js-jquery" or (errorHandler.buildDepError "js-jquery")) + (hsPkgs."mmap" or (errorHandler.buildDepError "mmap")) + (hsPkgs."process-extras" or (errorHandler.buildDepError "process-extras")) + (hsPkgs."resourcet" or (errorHandler.buildDepError "resourcet")) + (hsPkgs."storable-tuple" or (errorHandler.buildDepError "storable-tuple")) + (hsPkgs."tar" or (errorHandler.buildDepError "tar")) + (hsPkgs."template-haskell" or (errorHandler.buildDepError "template-haskell")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."time" or (errorHandler.buildDepError "time")) + (hsPkgs."transformers" or (errorHandler.buildDepError "transformers")) + (hsPkgs."uniplate" or (errorHandler.buildDepError "uniplate")) + (hsPkgs."utf8-string" or (errorHandler.buildDepError "utf8-string")) + (hsPkgs."vector" or (errorHandler.buildDepError "vector")) + (hsPkgs."wai" or (errorHandler.buildDepError "wai")) + (hsPkgs."wai-logger" or (errorHandler.buildDepError "wai-logger")) + (hsPkgs."warp" or (errorHandler.buildDepError "warp")) + (hsPkgs."warp-tls" or (errorHandler.buildDepError "warp-tls")) + (hsPkgs."zlib" or (errorHandler.buildDepError "zlib")) + ] ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).lt "8.0") (hsPkgs."semigroups" or (errorHandler.buildDepError "semigroups")); + buildable = true; + modules = [ + "Paths_hoogle" + "Action/CmdLine" + "Action/Generate" + "Action/Search" + "Action/Server" + "Action/Test" + "Input/Cabal" + "Input/Download" + "Input/Haddock" + "Input/Item" + "Input/Reorder" + "Input/Set" + "Input/Settings" + "Output/Items" + "Output/Names" + "Output/Tags" + "Output/Types" + "Query" + "General/Conduit" + "General/IString" + "General/Log" + "General/Store" + "General/Str" + "General/Template" + "General/Timing" + "General/Util" + "General/Web" + "Hoogle" + ]; + cSources = [ "cbits/text_search.c" ]; + hsSourceDirs = [ "src" ]; + includeDirs = [ "cbits" ]; + includes = [ "include.h" ]; + }; + exes = { + "hoogle" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."hoogle" or (errorHandler.buildDepError "hoogle")) + ]; + buildable = true; + mainPath = [ "src/Main.hs" ]; + }; + }; + }; + } // rec { src = (pkgs.lib).mkDefault ../.; } \ No newline at end of file diff --git a/nix/materialized/hoogle/default.nix b/nix/materialized/hoogle/default.nix new file mode 100644 index 00000000000..7e5faadc99b --- /dev/null +++ b/nix/materialized/hoogle/default.nix @@ -0,0 +1,290 @@ +{ + pkgs = hackage: + { + packages = { + "warp".revision = (((hackage."warp")."3.3.13").revisions).default; + "warp".flags.allow-sendfilefd = true; + "warp".flags.network-bytestring = false; + "warp".flags.warp-debug = false; + "http-client".revision = (((hackage."http-client")."0.7.2.1").revisions).default; + "http-client".flags.network-uri = true; + "cookie".revision = (((hackage."cookie")."0.4.5").revisions).default; + "byteorder".revision = (((hackage."byteorder")."1.0.4").revisions).default; + "cereal".revision = (((hackage."cereal")."0.5.8.1").revisions).default; + "cereal".flags.bytestring-builder = false; + "exceptions".revision = (((hackage."exceptions")."0.10.4").revisions).default; + "exceptions".flags.transformers-0-4 = true; + "binary".revision = (((hackage."binary")."0.8.6.0").revisions).default; + "tar".revision = (((hackage."tar")."0.5.1.1").revisions).default; + "tar".flags.old-time = false; + "tar".flags.old-bytestring = false; + "ghc-prim".revision = (((hackage."ghc-prim")."0.5.3").revisions).default; + "utf8-string".revision = (((hackage."utf8-string")."1.0.1.1").revisions).default; + "old-time".revision = (((hackage."old-time")."1.1.0.3").revisions).default; + "bifunctors".revision = (((hackage."bifunctors")."5.5.8").revisions).default; + "bifunctors".flags.semigroups = true; + "bifunctors".flags.tagged = true; + "extra".revision = (((hackage."extra")."1.7.8").revisions).default; + "x509-validation".revision = (((hackage."x509-validation")."1.6.11").revisions).default; + "split".revision = (((hackage."split")."0.2.3.4").revisions).default; + "data-fix".revision = (((hackage."data-fix")."0.3.0").revisions).default; + "stm".revision = (((hackage."stm")."2.5.0.0").revisions).default; + "unix-time".revision = (((hackage."unix-time")."0.4.7").revisions).default; + "http2".revision = (((hackage."http2")."2.0.5").revisions).default; + "http2".flags.devel = false; + "base-compat-batteries".revision = (((hackage."base-compat-batteries")."0.11.2").revisions).default; + "appar".revision = (((hackage."appar")."0.1.8").revisions).default; + "hourglass".revision = (((hackage."hourglass")."0.2.12").revisions).default; + "case-insensitive".revision = (((hackage."case-insensitive")."1.2.1.0").revisions).default; + "network-byte-order".revision = (((hackage."network-byte-order")."0.1.6").revisions).default; + "unix".revision = (((hackage."unix")."2.7.2.2").revisions).default; + "mtl".revision = (((hackage."mtl")."2.2.2").revisions).default; + "network-uri".revision = (((hackage."network-uri")."2.6.3.0").revisions).default; + "asn1-parse".revision = (((hackage."asn1-parse")."0.9.5").revisions).default; + "zlib".revision = (((hackage."zlib")."0.6.2.2").revisions).default; + "zlib".flags.non-blocking-ffi = false; + "zlib".flags.bundled-c-zlib = false; + "zlib".flags.pkg-config = false; + "rts".revision = (((hackage."rts")."1.0").revisions).default; + "cmdargs".revision = (((hackage."cmdargs")."0.10.20").revisions).default; + "cmdargs".flags.testprog = false; + "cmdargs".flags.quotation = true; + "easy-file".revision = (((hackage."easy-file")."0.2.2").revisions).default; + "js-flot".revision = (((hackage."js-flot")."0.8.3").revisions).default; + "cryptonite".revision = (((hackage."cryptonite")."0.27").revisions).default; + "cryptonite".flags.support_sse = false; + "cryptonite".flags.use_target_attributes = true; + "cryptonite".flags.integer-gmp = true; + "cryptonite".flags.support_rdrand = true; + "cryptonite".flags.support_aesni = true; + "cryptonite".flags.support_deepseq = true; + "cryptonite".flags.support_pclmuldq = false; + "cryptonite".flags.check_alignment = false; + "cryptonite".flags.old_toolchain_inliner = false; + "clock".revision = (((hackage."clock")."0.8").revisions).default; + "clock".flags.llvm = false; + "pem".revision = (((hackage."pem")."0.2.4").revisions).default; + "generic-deriving".revision = (((hackage."generic-deriving")."1.14").revisions).default; + "generic-deriving".flags.base-4-9 = true; + "syb".revision = (((hackage."syb")."0.7.1").revisions).default; + "storable-record".revision = (((hackage."storable-record")."0.0.5").revisions).default; + "storable-record".flags.splitbase = true; + "storable-record".flags.buildtests = false; + "distributive".revision = (((hackage."distributive")."0.6.2").revisions).default; + "distributive".flags.semigroups = true; + "distributive".flags.tagged = true; + "asn1-encoding".revision = (((hackage."asn1-encoding")."0.9.6").revisions).default; + "QuickCheck".revision = (((hackage."QuickCheck")."2.14.1").revisions).default; + "QuickCheck".flags.templatehaskell = true; + "QuickCheck".flags.old-random = false; + "scientific".revision = (((hackage."scientific")."0.3.6.2").revisions).default; + "scientific".flags.integer-simple = false; + "scientific".flags.bytestring-builder = false; + "time-manager".revision = (((hackage."time-manager")."0.0.0").revisions).default; + "deepseq".revision = (((hackage."deepseq")."1.4.4.0").revisions).default; + "random".revision = (((hackage."random")."1.2.0").revisions).default; + "http-conduit".revision = (((hackage."http-conduit")."2.3.7.3").revisions).default; + "uuid-types".revision = (((hackage."uuid-types")."1.0.3").revisions).default; + "network".revision = (((hackage."network")."3.1.2.0").revisions).default; + "network".flags.devel = false; + "word8".revision = (((hackage."word8")."0.1.3").revisions).default; + "connection".revision = (((hackage."connection")."0.3.1").revisions).default; + "splitmix".revision = (((hackage."splitmix")."0.1.0.2").revisions).default; + "splitmix".flags.optimised-mixer = false; + "async".revision = (((hackage."async")."2.2.2").revisions).default; + "async".flags.bench = false; + "dlist".revision = (((hackage."dlist")."1.0").revisions).default; + "dlist".flags.werror = false; + "conduit".revision = (((hackage."conduit")."1.3.3").revisions).default; + "x509-store".revision = (((hackage."x509-store")."1.6.7").revisions).default; + "semigroups".revision = (((hackage."semigroups")."0.19.1").revisions).default; + "semigroups".flags.bytestring = true; + "semigroups".flags.unordered-containers = true; + "semigroups".flags.text = true; + "semigroups".flags.tagged = true; + "semigroups".flags.containers = true; + "semigroups".flags.binary = true; + "semigroups".flags.hashable = true; + "semigroups".flags.transformers = true; + "semigroups".flags.deepseq = true; + "semigroups".flags.bytestring-builder = false; + "semigroups".flags.template-haskell = true; + "data-default".revision = (((hackage."data-default")."0.7.1.1").revisions).default; + "data-default-instances-old-locale".revision = (((hackage."data-default-instances-old-locale")."0.0.1").revisions).default; + "uniplate".revision = (((hackage."uniplate")."1.6.12").revisions).default; + "uniplate".flags.separate_syb = true; + "uniplate".flags.typeable_fingerprint = true; + "parsec".revision = (((hackage."parsec")."3.1.13.0").revisions).default; + "hsc2hs".revision = (((hackage."hsc2hs")."0.68.7").revisions).default; + "hsc2hs".flags.in-ghc-tree = false; + "directory".revision = (((hackage."directory")."1.3.3.0").revisions).default; + "transformers-compat".revision = (((hackage."transformers-compat")."0.6.6").revisions).default; + "transformers-compat".flags.five = false; + "transformers-compat".flags.generic-deriving = true; + "transformers-compat".flags.two = false; + "transformers-compat".flags.five-three = true; + "transformers-compat".flags.mtl = true; + "transformers-compat".flags.four = false; + "transformers-compat".flags.three = false; + "template-haskell".revision = (((hackage."template-haskell")."2.14.0.0").revisions).default; + "mono-traversable".revision = (((hackage."mono-traversable")."1.0.15.1").revisions).default; + "psqueues".revision = (((hackage."psqueues")."0.2.7.2").revisions).default; + "vector".revision = (((hackage."vector")."0.12.1.2").revisions).default; + "vector".flags.unsafechecks = false; + "vector".flags.internalchecks = false; + "vector".flags.wall = false; + "vector".flags.boundschecks = true; + "primitive".revision = (((hackage."primitive")."0.7.1.0").revisions).default; + "ListLike".revision = (((hackage."ListLike")."4.7.2").revisions).default; + "blaze-builder".revision = (((hackage."blaze-builder")."0.4.1.0").revisions).default; + "base-compat".revision = (((hackage."base-compat")."0.11.2").revisions).default; + "js-jquery".revision = (((hackage."js-jquery")."3.3.1").revisions).default; + "time-compat".revision = (((hackage."time-compat")."1.9.3").revisions).default; + "time-compat".flags.old-locale = false; + "x509-system".revision = (((hackage."x509-system")."1.6.6").revisions).default; + "tagged".revision = (((hackage."tagged")."0.8.6").revisions).default; + "tagged".flags.transformers = true; + "tagged".flags.deepseq = true; + "x509".revision = (((hackage."x509")."1.7.5").revisions).default; + "haskell-src-exts".revision = (((hackage."haskell-src-exts")."1.23.1").revisions).default; + "unliftio-core".revision = (((hackage."unliftio-core")."0.2.0.1").revisions).default; + "containers".revision = (((hackage."containers")."0.6.0.1").revisions).default; + "integer-logarithms".revision = (((hackage."integer-logarithms")."1.0.3").revisions).default; + "integer-logarithms".flags.check-bounds = false; + "integer-logarithms".flags.integer-gmp = true; + "these".revision = (((hackage."these")."1.1.1.1").revisions).default; + "these".flags.assoc = true; + "socks".revision = (((hackage."socks")."0.6.1").revisions).default; + "streaming-commons".revision = (((hackage."streaming-commons")."0.2.2.1").revisions).default; + "streaming-commons".flags.use-bytestring-builder = false; + "bytestring".revision = (((hackage."bytestring")."0.10.8.2").revisions).default; + "wai".revision = (((hackage."wai")."3.2.2.1").revisions).default; + "basement".revision = (((hackage."basement")."0.0.11").revisions).default; + "process-extras".revision = (((hackage."process-extras")."0.7.4").revisions).default; + "old-locale".revision = (((hackage."old-locale")."1.0.0.7").revisions).default; + "typed-process".revision = (((hackage."typed-process")."0.2.6.0").revisions).default; + "vault".revision = (((hackage."vault")."0.3.1.4").revisions).default; + "vault".flags.useghc = true; + "mime-types".revision = (((hackage."mime-types")."0.1.0.9").revisions).default; + "warp-tls".revision = (((hackage."warp-tls")."3.3.0").revisions).default; + "http-client-tls".revision = (((hackage."http-client-tls")."0.3.5.3").revisions).default; + "data-default-instances-dlist".revision = (((hackage."data-default-instances-dlist")."0.0.1").revisions).default; + "blaze-markup".revision = (((hackage."blaze-markup")."0.8.2.7").revisions).default; + "storable-tuple".revision = (((hackage."storable-tuple")."0.0.3.3").revisions).default; + "storable-tuple".flags.splitbase = true; + "text".revision = (((hackage."text")."1.2.3.1").revisions).default; + "Cabal".revision = (((hackage."Cabal")."2.4.0.1").revisions).default; + "assoc".revision = (((hackage."assoc")."1.0.2").revisions).default; + "unordered-containers".revision = (((hackage."unordered-containers")."0.2.13.0").revisions).default; + "unordered-containers".flags.debug = false; + "base".revision = (((hackage."base")."4.12.0.0").revisions).default; + "comonad".revision = (((hackage."comonad")."5.0.6").revisions).default; + "comonad".flags.distributive = true; + "comonad".flags.test-doctests = true; + "comonad".flags.containers = true; + "time".revision = (((hackage."time")."1.8.0.2").revisions).default; + "data-default-class".revision = (((hackage."data-default-class")."0.1.2.0").revisions).default; + "vector-algorithms".revision = (((hackage."vector-algorithms")."0.8.0.3").revisions).default; + "vector-algorithms".flags.unsafechecks = false; + "vector-algorithms".flags.internalchecks = false; + "vector-algorithms".flags.llvm = false; + "vector-algorithms".flags.boundschecks = true; + "vector-algorithms".flags.bench = true; + "vector-algorithms".flags.properties = true; + "iproute".revision = (((hackage."iproute")."1.7.9").revisions).default; + "transformers".revision = (((hackage."transformers")."0.5.6.2").revisions).default; + "hashable".revision = (((hackage."hashable")."1.3.0.0").revisions).default; + "hashable".flags.sse2 = true; + "hashable".flags.integer-gmp = true; + "hashable".flags.sse41 = false; + "hashable".flags.examples = false; + "data-default-instances-containers".revision = (((hackage."data-default-instances-containers")."0.0.1").revisions).default; + "attoparsec".revision = (((hackage."attoparsec")."0.13.2.4").revisions).default; + "attoparsec".flags.developer = false; + "blaze-html".revision = (((hackage."blaze-html")."0.9.1.2").revisions).default; + "happy".revision = (((hackage."happy")."1.20.0").revisions).default; + "foundation".revision = (((hackage."foundation")."0.0.25").revisions).default; + "foundation".flags.minimal-deps = false; + "foundation".flags.doctest = false; + "foundation".flags.linktest = false; + "foundation".flags.experimental = false; + "foundation".flags.bounds-check = false; + "foundation".flags.bench-all = false; + "strict".revision = (((hackage."strict")."0.4").revisions).default; + "strict".flags.assoc = true; + "filepath".revision = (((hackage."filepath")."1.4.2.1").revisions).default; + "auto-update".revision = (((hackage."auto-update")."0.1.6").revisions).default; + "asn1-types".revision = (((hackage."asn1-types")."0.3.4").revisions).default; + "unix-compat".revision = (((hackage."unix-compat")."0.5.2").revisions).default; + "unix-compat".flags.old-time = false; + "process".revision = (((hackage."process")."1.6.5.0").revisions).default; + "tls".revision = (((hackage."tls")."1.5.4").revisions).default; + "tls".flags.compat = true; + "tls".flags.network = true; + "tls".flags.hans = false; + "wai-logger".revision = (((hackage."wai-logger")."2.3.6").revisions).default; + "tls-session-manager".revision = (((hackage."tls-session-manager")."0.0.4").revisions).default; + "resourcet".revision = (((hackage."resourcet")."1.2.4.2").revisions).default; + "pretty".revision = (((hackage."pretty")."1.1.3.6").revisions).default; + "cabal-doctest".revision = (((hackage."cabal-doctest")."1.0.8").revisions).default; + "aeson".revision = (((hackage."aeson")."1.5.4.1").revisions).default; + "aeson".flags.cffi = false; + "aeson".flags.fast = false; + "aeson".flags.bytestring-builder = false; + "aeson".flags.developer = false; + "http-types".revision = (((hackage."http-types")."0.12.3").revisions).default; + "ghc-boot-th".revision = (((hackage."ghc-boot-th")."8.6.5").revisions).default; + "fmlist".revision = (((hackage."fmlist")."0.9.4").revisions).default; + "base-orphans".revision = (((hackage."base-orphans")."0.8.3").revisions).default; + "http-date".revision = (((hackage."http-date")."0.0.10").revisions).default; + "th-abstraction".revision = (((hackage."th-abstraction")."0.4.0.0").revisions).default; + "memory".revision = (((hackage."memory")."0.15.0").revisions).default; + "memory".flags.support_bytestring = true; + "memory".flags.support_basement = true; + "memory".flags.support_foundation = true; + "memory".flags.support_deepseq = true; + "fast-logger".revision = (((hackage."fast-logger")."3.0.2").revisions).default; + "bsb-http-chunked".revision = (((hackage."bsb-http-chunked")."0.0.0.4").revisions).default; + "array".revision = (((hackage."array")."0.5.3.0").revisions).default; + "utility-ht".revision = (((hackage."utility-ht")."0.0.15").revisions).default; + "conduit-extra".revision = (((hackage."conduit-extra")."1.3.5").revisions).default; + "mmap".revision = (((hackage."mmap")."0.5.9").revisions).default; + "mmap".flags.mmaptest = false; + "simple-sendfile".revision = (((hackage."simple-sendfile")."0.2.30").revisions).default; + "simple-sendfile".flags.allow-bsd = true; + "integer-gmp".revision = (((hackage."integer-gmp")."1.0.2.0").revisions).default; + }; + compiler = { + version = "8.6.5"; + nix-name = "ghc865"; + packages = { + "binary" = "0.8.6.0"; + "ghc-prim" = "0.5.3"; + "stm" = "2.5.0.0"; + "unix" = "2.7.2.2"; + "mtl" = "2.2.2"; + "rts" = "1.0"; + "deepseq" = "1.4.4.0"; + "parsec" = "3.1.13.0"; + "directory" = "1.3.3.0"; + "template-haskell" = "2.14.0.0"; + "containers" = "0.6.0.1"; + "bytestring" = "0.10.8.2"; + "text" = "1.2.3.1"; + "Cabal" = "2.4.0.1"; + "base" = "4.12.0.0"; + "time" = "1.8.0.2"; + "transformers" = "0.5.6.2"; + "filepath" = "1.4.2.1"; + "process" = "1.6.5.0"; + "pretty" = "1.1.3.6"; + "ghc-boot-th" = "8.6.5"; + "array" = "0.5.3.0"; + "integer-gmp" = "1.0.2.0"; + }; + }; + }; + extras = hackage: + { packages = { hoogle = ./.plan.nix/hoogle.nix; }; }; + modules = [ ({ lib, ... }: { packages = { "hoogle" = { flags = {}; }; }; }) ]; + } \ No newline at end of file diff --git a/nix/materialized/lentil/.plan.nix/lentil.nix b/nix/materialized/lentil/.plan.nix/lentil.nix new file mode 100644 index 00000000000..73c7087aed3 --- /dev/null +++ b/nix/materialized/lentil/.plan.nix/lentil.nix @@ -0,0 +1,163 @@ +{ system + , compiler + , flags + , pkgs + , hsPkgs + , pkgconfPkgs + , errorHandler + , config + , ... }: + { + flags = { developer = false; }; + package = { + specVersion = "1.24"; + identifier = { name = "lentil"; version = "1.3.2.0"; }; + license = "GPL-3.0-only"; + copyright = "© 2015-2019 Francesco Ariis et al. (check authors.txt)"; + maintainer = "Francesco Ariis "; + author = "Francesco Ariis et al.\n(check authors.txt)"; + homepage = "http://www.ariis.it/static/articles/lentil/page.html"; + url = ""; + synopsis = "frugal issue tracker"; + description = "minumum effort, cohesive issue tracker based on\nubiquitous @TODO@s and @FIXME@s conventions.\nCheck homepage for manual, tutorial, examples."; + buildType = "Simple"; + isLocal = true; + detailLevel = "FullDetails"; + licenseFiles = [ "LICENSE" ]; + dataDir = ""; + dataFiles = []; + extraSrcFiles = [ + "stack.yaml" + "test/test-files/lang-comm/clang.c" + "test/test-files/lang-comm/haskell.hs" + "test/test-files/lang-comm/javascript.js" + "test/test-files/lang-comm/out.blocks" + "test/test-files/lang-comm/pascal.pas" + "test/test-files/lang-comm/python.py" + "test/test-files/lang-comm/ruby.rb" + "test/test-files/lang-comm/perl.pl" + "test/test-files/lang-comm/shell.sh" + "test/test-files/lang-comm/nix.nix" + "test/test-files/lang-comm/xml.xml" + "test/test-files/lang-comm/erlang.erl" + "test/test-files/lang-comm/ocaml.ml" + "test/test-files/lang-comm/rust.rs" + "test/test-files/lang-comm/r.r" + "test/test-files/lang-comm/standard-ml.sml" + "test/test-files/lang-comm/rst.rst" + "test/test-files/lang-comm/org-mode.org" + "test/test-files/lang-comm/text.txt" + "test/test-files/specific/contiguous.c" + "test/test-files/specific/cont-custom.c" + "test/test-files/specific/uppercase.C" + "test/test-files/specific/xyz.xyz" + "test/test-files/specific/custom-fwords.c" + "test/test-files/test-proj/base-case/fold-a/foo1.hs" + "test/test-files/test-proj/base-case/fold-b/foo2.hs" + "test/test-files/test-proj/base-case/fold-c/foo3.hs" + "test/test-files/test-proj/base-case/fold-c/sub-fold/foo4.hs" + "test/test-files/test-proj/base-case/fold-c/sub-fold/foo5.hs" + "test/test-files/test-proj/dot-folders/foo1.hs" + "test/test-files/test-proj/dot-folders/.alfa/foo1.hs" + "test/test-files/test-proj/dot-folders/_beta/foo1.hs" + ]; + extraTmpFiles = []; + extraDocFiles = [ + "README" + "changes.txt" + "doc/usr/page.rst" + "doc/usr/test.zip" + "issues.txt" + "authors.txt" + ]; + }; + components = { + exes = { + "lentil" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."ansi-wl-pprint" or (errorHandler.buildDepError "ansi-wl-pprint")) + (hsPkgs."csv" or (errorHandler.buildDepError "csv")) + (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq")) + (hsPkgs."dlist" or (errorHandler.buildDepError "dlist")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."filemanip" or (errorHandler.buildDepError "filemanip")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."megaparsec" or (errorHandler.buildDepError "megaparsec")) + (hsPkgs."mtl" or (errorHandler.buildDepError "mtl")) + (hsPkgs."natural-sort" or (errorHandler.buildDepError "natural-sort")) + (hsPkgs."optparse-applicative" or (errorHandler.buildDepError "optparse-applicative")) + (hsPkgs."regex-tdfa" or (errorHandler.buildDepError "regex-tdfa")) + (hsPkgs."semigroups" or (errorHandler.buildDepError "semigroups")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."terminal-progress-bar" or (errorHandler.buildDepError "terminal-progress-bar")) + ]; + buildable = true; + modules = [ + "Lentil/Types" + "Lentil/Args" + "Lentil/File" + "Lentil/Print" + "Lentil/Query" + "Lentil/Export" + "Lentil/Parse/Source" + "Lentil/Parse/Issue" + "Lentil/Parse/Syntaxes" + "Lentil/Parse/Run" + "Lentil/Helpers" + ]; + hsSourceDirs = [ "src" ]; + mainPath = [ "Main.hs" ] ++ [ "" ]; + }; + }; + tests = { + "test" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."ansi-wl-pprint" or (errorHandler.buildDepError "ansi-wl-pprint")) + (hsPkgs."csv" or (errorHandler.buildDepError "csv")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq")) + (hsPkgs."dlist" or (errorHandler.buildDepError "dlist")) + (hsPkgs."filemanip" or (errorHandler.buildDepError "filemanip")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."megaparsec" or (errorHandler.buildDepError "megaparsec")) + (hsPkgs."mtl" or (errorHandler.buildDepError "mtl")) + (hsPkgs."natural-sort" or (errorHandler.buildDepError "natural-sort")) + (hsPkgs."optparse-applicative" or (errorHandler.buildDepError "optparse-applicative")) + (hsPkgs."regex-tdfa" or (errorHandler.buildDepError "regex-tdfa")) + (hsPkgs."semigroups" or (errorHandler.buildDepError "semigroups")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."terminal-progress-bar" or (errorHandler.buildDepError "terminal-progress-bar")) + (hsPkgs."hspec" or (errorHandler.buildDepError "hspec")) + ]; + buildable = true; + modules = [ + "Lentil/Types" + "Lentil/Args" + "Lentil/File" + "Lentil/Print" + "Lentil/Query" + "Lentil/Export" + "Lentil/Parse/Source" + "Lentil/Parse/Issue" + "Lentil/Parse/Syntaxes" + "Lentil/Parse/Run" + "Lentil/HelpersSpec" + "Lentil/ArgsSpec" + "Lentil/ExportSpec" + "Lentil/FileSpec" + "Lentil/PrintSpec" + "Lentil/Parse/SourceSpec" + "Lentil/Parse/IssueSpec" + "Lentil/QuerySpec" + "Lentil/TypeSpec" + "Lentil/Parse/RunSpec" + "Lentil/Helpers" + ]; + hsSourceDirs = [ "test" "src" ]; + mainPath = [ "Tests.hs" ]; + }; + }; + }; + } // rec { src = (pkgs.lib).mkDefault ../.; } \ No newline at end of file diff --git a/nix/materialized/lentil/default.nix b/nix/materialized/lentil/default.nix new file mode 100644 index 00000000000..5fe89c4d745 --- /dev/null +++ b/nix/materialized/lentil/default.nix @@ -0,0 +1,140 @@ +{ + pkgs = hackage: + { + packages = { + "tf-random".revision = (((hackage."tf-random")."0.5").revisions).default; + "binary".revision = (((hackage."binary")."0.8.6.0").revisions).default; + "regex-tdfa".revision = (((hackage."regex-tdfa")."1.3.1.0").revisions).default; + "regex-tdfa".flags.force-o2 = false; + "ghc-prim".revision = (((hackage."ghc-prim")."0.5.3").revisions).default; + "stm".revision = (((hackage."stm")."2.5.0.0").revisions).default; + "case-insensitive".revision = (((hackage."case-insensitive")."1.2.1.0").revisions).default; + "unix".revision = (((hackage."unix")."2.7.2.2").revisions).default; + "mtl".revision = (((hackage."mtl")."2.2.2").revisions).default; + "regex-base".revision = (((hackage."regex-base")."0.94.0.0").revisions).default; + "rts".revision = (((hackage."rts")."1.0").revisions).default; + "clock".revision = (((hackage."clock")."0.8").revisions).default; + "clock".flags.llvm = false; + "megaparsec".revision = (((hackage."megaparsec")."8.0.0").revisions).default; + "megaparsec".flags.dev = false; + "QuickCheck".revision = (((hackage."QuickCheck")."2.14.1").revisions).default; + "QuickCheck".flags.templatehaskell = true; + "QuickCheck".flags.old-random = false; + "scientific".revision = (((hackage."scientific")."0.3.6.2").revisions).default; + "scientific".flags.integer-simple = false; + "scientific".flags.bytestring-builder = false; + "hspec-discover".revision = (((hackage."hspec-discover")."2.7.4").revisions).default; + "deepseq".revision = (((hackage."deepseq")."1.4.4.0").revisions).default; + "random".revision = (((hackage."random")."1.2.0").revisions).default; + "optparse-applicative".revision = (((hackage."optparse-applicative")."0.15.1.0").revisions).default; + "splitmix".revision = (((hackage."splitmix")."0.1.0.2").revisions).default; + "splitmix".flags.optimised-mixer = false; + "dlist".revision = (((hackage."dlist")."0.8.0.8").revisions).default; + "csv".revision = (((hackage."csv")."0.1.2").revisions).default; + "semigroups".revision = (((hackage."semigroups")."0.19.1").revisions).default; + "semigroups".flags.bytestring = true; + "semigroups".flags.unordered-containers = true; + "semigroups".flags.text = true; + "semigroups".flags.tagged = true; + "semigroups".flags.containers = true; + "semigroups".flags.binary = true; + "semigroups".flags.hashable = true; + "semigroups".flags.transformers = true; + "semigroups".flags.deepseq = true; + "semigroups".flags.bytestring-builder = false; + "semigroups".flags.template-haskell = true; + "HUnit".revision = (((hackage."HUnit")."1.6.0.0").revisions).default; + "natural-sort".revision = (((hackage."natural-sort")."0.1.2").revisions).default; + "parsec".revision = (((hackage."parsec")."3.1.13.0").revisions).default; + "hsc2hs".revision = (((hackage."hsc2hs")."0.68.7").revisions).default; + "hsc2hs".flags.in-ghc-tree = false; + "directory".revision = (((hackage."directory")."1.3.3.0").revisions).default; + "transformers-compat".revision = (((hackage."transformers-compat")."0.6.6").revisions).default; + "transformers-compat".flags.five = false; + "transformers-compat".flags.generic-deriving = true; + "transformers-compat".flags.two = false; + "transformers-compat".flags.five-three = true; + "transformers-compat".flags.mtl = true; + "transformers-compat".flags.four = false; + "transformers-compat".flags.three = false; + "template-haskell".revision = (((hackage."template-haskell")."2.14.0.0").revisions).default; + "hspec-expectations".revision = (((hackage."hspec-expectations")."0.8.2").revisions).default; + "call-stack".revision = (((hackage."call-stack")."0.2.0").revisions).default; + "primitive".revision = (((hackage."primitive")."0.7.1.0").revisions).default; + "terminal-size".revision = (((hackage."terminal-size")."0.3.2.1").revisions).default; + "ansi-terminal".revision = (((hackage."ansi-terminal")."0.11").revisions).default; + "ansi-terminal".flags.example = false; + "containers".revision = (((hackage."containers")."0.6.0.1").revisions).default; + "integer-logarithms".revision = (((hackage."integer-logarithms")."1.0.3").revisions).default; + "integer-logarithms".flags.check-bounds = false; + "integer-logarithms".flags.integer-gmp = true; + "bytestring".revision = (((hackage."bytestring")."0.10.8.2").revisions).default; + "ansi-wl-pprint".revision = (((hackage."ansi-wl-pprint")."0.6.9").revisions).default; + "ansi-wl-pprint".flags.example = false; + "setenv".revision = (((hackage."setenv")."0.1.1.3").revisions).default; + "filemanip".revision = (((hackage."filemanip")."0.3.6.3").revisions).default; + "parser-combinators".revision = (((hackage."parser-combinators")."1.2.1").revisions).default; + "parser-combinators".flags.dev = false; + "text".revision = (((hackage."text")."1.2.3.1").revisions).default; + "base".revision = (((hackage."base")."4.12.0.0").revisions).default; + "hspec".revision = (((hackage."hspec")."2.7.4").revisions).default; + "time".revision = (((hackage."time")."1.8.0.2").revisions).default; + "transformers".revision = (((hackage."transformers")."0.5.6.2").revisions).default; + "hashable".revision = (((hackage."hashable")."1.3.0.0").revisions).default; + "hashable".flags.sse2 = true; + "hashable".flags.integer-gmp = true; + "hashable".flags.sse41 = false; + "hashable".flags.examples = false; + "quickcheck-io".revision = (((hackage."quickcheck-io")."0.2.0").revisions).default; + "terminal-progress-bar".revision = (((hackage."terminal-progress-bar")."0.4.1").revisions).default; + "colour".revision = (((hackage."colour")."2.3.5").revisions).default; + "filepath".revision = (((hackage."filepath")."1.4.2.1").revisions).default; + "hspec-core".revision = (((hackage."hspec-core")."2.7.4").revisions).default; + "unix-compat".revision = (((hackage."unix-compat")."0.5.2").revisions).default; + "unix-compat".flags.old-time = false; + "process".revision = (((hackage."process")."1.6.5.0").revisions).default; + "pretty".revision = (((hackage."pretty")."1.1.3.6").revisions).default; + "ghc-boot-th".revision = (((hackage."ghc-boot-th")."8.6.5").revisions).default; + "array".revision = (((hackage."array")."0.5.3.0").revisions).default; + "integer-gmp".revision = (((hackage."integer-gmp")."1.0.2.0").revisions).default; + }; + compiler = { + version = "8.6.5"; + nix-name = "ghc865"; + packages = { + "binary" = "0.8.6.0"; + "ghc-prim" = "0.5.3"; + "stm" = "2.5.0.0"; + "unix" = "2.7.2.2"; + "mtl" = "2.2.2"; + "rts" = "1.0"; + "deepseq" = "1.4.4.0"; + "parsec" = "3.1.13.0"; + "directory" = "1.3.3.0"; + "template-haskell" = "2.14.0.0"; + "containers" = "0.6.0.1"; + "bytestring" = "0.10.8.2"; + "text" = "1.2.3.1"; + "base" = "4.12.0.0"; + "time" = "1.8.0.2"; + "transformers" = "0.5.6.2"; + "filepath" = "1.4.2.1"; + "process" = "1.6.5.0"; + "pretty" = "1.1.3.6"; + "ghc-boot-th" = "8.6.5"; + "array" = "0.5.3.0"; + "integer-gmp" = "1.0.2.0"; + }; + }; + }; + extras = hackage: + { packages = { lentil = ./.plan.nix/lentil.nix; }; }; + modules = [ + ({ lib, ... }: + { + packages = { + "lentil" = { flags = { "developer" = lib.mkOverride 900 false; }; }; + }; + }) + ]; + } \ No newline at end of file diff --git a/nix/materialized/stylish-haskell/.plan.nix/stylish-haskell.nix b/nix/materialized/stylish-haskell/.plan.nix/stylish-haskell.nix new file mode 100644 index 00000000000..3ba9d298195 --- /dev/null +++ b/nix/materialized/stylish-haskell/.plan.nix/stylish-haskell.nix @@ -0,0 +1,168 @@ +{ system + , compiler + , flags + , pkgs + , hsPkgs + , pkgconfPkgs + , errorHandler + , config + , ... }: + { + flags = {}; + package = { + specVersion = "1.10"; + identifier = { name = "stylish-haskell"; version = "0.11.0.3"; }; + license = "BSD-3-Clause"; + copyright = "2012 Jasper Van der Jeugt"; + maintainer = "Jasper Van der Jeugt "; + author = "Jasper Van der Jeugt "; + homepage = "https://github.com/jaspervdj/stylish-haskell"; + url = ""; + synopsis = "Haskell code prettifier"; + description = "A Haskell code prettifier. For more information, see:\n\n"; + buildType = "Simple"; + isLocal = true; + detailLevel = "FullDetails"; + licenseFiles = [ "LICENSE" ]; + dataDir = ""; + dataFiles = []; + extraSrcFiles = [ + "CHANGELOG" + "README.markdown" + "data/stylish-haskell.yaml" + ]; + extraTmpFiles = []; + extraDocFiles = []; + }; + components = { + "library" = { + depends = [ + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."Cabal" or (errorHandler.buildDepError "Cabal")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."file-embed" or (errorHandler.buildDepError "file-embed")) + (hsPkgs."haskell-src-exts" or (errorHandler.buildDepError "haskell-src-exts")) + (hsPkgs."mtl" or (errorHandler.buildDepError "mtl")) + (hsPkgs."semigroups" or (errorHandler.buildDepError "semigroups")) + (hsPkgs."syb" or (errorHandler.buildDepError "syb")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."HsYAML-aeson" or (errorHandler.buildDepError "HsYAML-aeson")) + (hsPkgs."HsYAML" or (errorHandler.buildDepError "HsYAML")) + ]; + buildable = true; + modules = [ + "Language/Haskell/Stylish/Align" + "Language/Haskell/Stylish/Block" + "Language/Haskell/Stylish/Config" + "Language/Haskell/Stylish/Config/Cabal" + "Language/Haskell/Stylish/Config/Internal" + "Language/Haskell/Stylish/Editor" + "Language/Haskell/Stylish/Parse" + "Language/Haskell/Stylish/Step" + "Language/Haskell/Stylish/Util" + "Language/Haskell/Stylish/Verbose" + "Paths_stylish_haskell" + "Language/Haskell/Stylish" + "Language/Haskell/Stylish/Step/Data" + "Language/Haskell/Stylish/Step/Imports" + "Language/Haskell/Stylish/Step/LanguagePragmas" + "Language/Haskell/Stylish/Step/SimpleAlign" + "Language/Haskell/Stylish/Step/Squash" + "Language/Haskell/Stylish/Step/Tabs" + "Language/Haskell/Stylish/Step/TrailingWhitespace" + "Language/Haskell/Stylish/Step/UnicodeSyntax" + ]; + hsSourceDirs = [ "lib" ]; + }; + exes = { + "stylish-haskell" = { + depends = [ + (hsPkgs."stylish-haskell" or (errorHandler.buildDepError "stylish-haskell")) + (hsPkgs."strict" or (errorHandler.buildDepError "strict")) + (hsPkgs."optparse-applicative" or (errorHandler.buildDepError "optparse-applicative")) + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."Cabal" or (errorHandler.buildDepError "Cabal")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."file-embed" or (errorHandler.buildDepError "file-embed")) + (hsPkgs."haskell-src-exts" or (errorHandler.buildDepError "haskell-src-exts")) + (hsPkgs."mtl" or (errorHandler.buildDepError "mtl")) + (hsPkgs."syb" or (errorHandler.buildDepError "syb")) + (hsPkgs."HsYAML-aeson" or (errorHandler.buildDepError "HsYAML-aeson")) + (hsPkgs."HsYAML" or (errorHandler.buildDepError "HsYAML")) + ]; + buildable = true; + hsSourceDirs = [ "src" ]; + mainPath = [ "Main.hs" ]; + }; + }; + tests = { + "stylish-haskell-tests" = { + depends = [ + (hsPkgs."HUnit" or (errorHandler.buildDepError "HUnit")) + (hsPkgs."test-framework" or (errorHandler.buildDepError "test-framework")) + (hsPkgs."test-framework-hunit" or (errorHandler.buildDepError "test-framework-hunit")) + (hsPkgs."random" or (errorHandler.buildDepError "random")) + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."Cabal" or (errorHandler.buildDepError "Cabal")) + (hsPkgs."containers" or (errorHandler.buildDepError "containers")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."file-embed" or (errorHandler.buildDepError "file-embed")) + (hsPkgs."haskell-src-exts" or (errorHandler.buildDepError "haskell-src-exts")) + (hsPkgs."mtl" or (errorHandler.buildDepError "mtl")) + (hsPkgs."syb" or (errorHandler.buildDepError "syb")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."HsYAML-aeson" or (errorHandler.buildDepError "HsYAML-aeson")) + (hsPkgs."HsYAML" or (errorHandler.buildDepError "HsYAML")) + ]; + buildable = true; + modules = [ + "Language/Haskell/Stylish" + "Language/Haskell/Stylish/Align" + "Language/Haskell/Stylish/Block" + "Language/Haskell/Stylish/Config" + "Language/Haskell/Stylish/Config/Cabal" + "Language/Haskell/Stylish/Config/Internal" + "Language/Haskell/Stylish/Config/Tests" + "Language/Haskell/Stylish/Editor" + "Language/Haskell/Stylish/Parse" + "Language/Haskell/Stylish/Parse/Tests" + "Language/Haskell/Stylish/Step" + "Language/Haskell/Stylish/Step/Imports" + "Language/Haskell/Stylish/Step/Imports/Tests" + "Language/Haskell/Stylish/Step/Data" + "Language/Haskell/Stylish/Step/Data/Tests" + "Language/Haskell/Stylish/Step/LanguagePragmas" + "Language/Haskell/Stylish/Step/LanguagePragmas/Tests" + "Language/Haskell/Stylish/Step/SimpleAlign" + "Language/Haskell/Stylish/Step/SimpleAlign/Tests" + "Language/Haskell/Stylish/Step/Squash" + "Language/Haskell/Stylish/Step/Squash/Tests" + "Language/Haskell/Stylish/Step/Tabs" + "Language/Haskell/Stylish/Step/Tabs/Tests" + "Language/Haskell/Stylish/Step/TrailingWhitespace" + "Language/Haskell/Stylish/Step/TrailingWhitespace/Tests" + "Language/Haskell/Stylish/Step/UnicodeSyntax" + "Language/Haskell/Stylish/Step/UnicodeSyntax/Tests" + "Language/Haskell/Stylish/Tests" + "Language/Haskell/Stylish/Tests/Util" + "Language/Haskell/Stylish/Util" + "Language/Haskell/Stylish/Verbose" + "Paths_stylish_haskell" + ]; + hsSourceDirs = [ "tests" "lib" ]; + mainPath = [ "TestSuite.hs" ]; + }; + }; + }; + } // rec { src = (pkgs.lib).mkDefault ../.; } \ No newline at end of file diff --git a/nix/materialized/stylish-haskell/default.nix b/nix/materialized/stylish-haskell/default.nix new file mode 100644 index 00000000000..1e71354bc35 --- /dev/null +++ b/nix/materialized/stylish-haskell/default.nix @@ -0,0 +1,163 @@ +{ + pkgs = hackage: + { + packages = { + "test-framework-hunit".revision = (((hackage."test-framework-hunit")."0.3.0.2").revisions).default; + "test-framework-hunit".flags.base4 = true; + "test-framework-hunit".flags.base3 = false; + "binary".revision = (((hackage."binary")."0.8.6.0").revisions).default; + "ghc-prim".revision = (((hackage."ghc-prim")."0.5.3").revisions).default; + "bifunctors".revision = (((hackage."bifunctors")."5.5.7").revisions).default; + "bifunctors".flags.semigroups = true; + "bifunctors".flags.tagged = true; + "base-compat-batteries".revision = (((hackage."base-compat-batteries")."0.11.2").revisions).default; + "extensible-exceptions".revision = (((hackage."extensible-exceptions")."0.1.1.4").revisions).default; + "unix".revision = (((hackage."unix")."2.7.2.2").revisions).default; + "mtl".revision = (((hackage."mtl")."2.2.2").revisions).default; + "regex-base".revision = (((hackage."regex-base")."0.94.0.0").revisions).default; + "rts".revision = (((hackage."rts")."1.0").revisions).default; + "regex-posix".revision = (((hackage."regex-posix")."0.96.0.0").revisions).default; + "regex-posix".flags._regex-posix-clib = false; + "syb".revision = (((hackage."syb")."0.7.1").revisions).default; + "distributive".revision = (((hackage."distributive")."0.6.2").revisions).default; + "distributive".flags.semigroups = true; + "distributive".flags.tagged = true; + "scientific".revision = (((hackage."scientific")."0.3.6.2").revisions).default; + "scientific".flags.integer-simple = false; + "scientific".flags.bytestring-builder = false; + "deepseq".revision = (((hackage."deepseq")."1.4.4.0").revisions).default; + "random".revision = (((hackage."random")."1.1").revisions).default; + "uuid-types".revision = (((hackage."uuid-types")."1.0.3").revisions).default; + "optparse-applicative".revision = (((hackage."optparse-applicative")."0.15.1.0").revisions).default; + "dlist".revision = (((hackage."dlist")."0.8.0.8").revisions).default; + "semigroups".revision = (((hackage."semigroups")."0.19.1").revisions).default; + "semigroups".flags.bytestring = true; + "semigroups".flags.unordered-containers = true; + "semigroups".flags.text = true; + "semigroups".flags.tagged = true; + "semigroups".flags.containers = true; + "semigroups".flags.binary = true; + "semigroups".flags.hashable = true; + "semigroups".flags.transformers = true; + "semigroups".flags.deepseq = true; + "semigroups".flags.bytestring-builder = false; + "semigroups".flags.template-haskell = true; + "HUnit".revision = (((hackage."HUnit")."1.6.0.0").revisions).default; + "parsec".revision = (((hackage."parsec")."3.1.13.0").revisions).default; + "directory".revision = (((hackage."directory")."1.3.3.0").revisions).default; + "transformers-compat".revision = (((hackage."transformers-compat")."0.6.6").revisions).default; + "transformers-compat".flags.five = false; + "transformers-compat".flags.generic-deriving = true; + "transformers-compat".flags.two = false; + "transformers-compat".flags.five-three = true; + "transformers-compat".flags.mtl = true; + "transformers-compat".flags.four = false; + "transformers-compat".flags.three = false; + "template-haskell".revision = (((hackage."template-haskell")."2.14.0.0").revisions).default; + "vector".revision = (((hackage."vector")."0.12.1.2").revisions).default; + "vector".flags.unsafechecks = false; + "vector".flags.internalchecks = false; + "vector".flags.wall = false; + "vector".flags.boundschecks = true; + "call-stack".revision = (((hackage."call-stack")."0.2.0").revisions).default; + "primitive".revision = (((hackage."primitive")."0.7.1.0").revisions).default; + "base-compat".revision = (((hackage."base-compat")."0.11.2").revisions).default; + "time-compat".revision = (((hackage."time-compat")."1.9.3").revisions).default; + "time-compat".flags.old-locale = false; + "ansi-terminal".revision = (((hackage."ansi-terminal")."0.10.3").revisions).default; + "ansi-terminal".flags.example = false; + "tagged".revision = (((hackage."tagged")."0.8.6").revisions).default; + "tagged".flags.transformers = true; + "tagged".flags.deepseq = true; + "haskell-src-exts".revision = (((hackage."haskell-src-exts")."1.23.1").revisions).default; + "containers".revision = (((hackage."containers")."0.6.0.1").revisions).default; + "integer-logarithms".revision = (((hackage."integer-logarithms")."1.0.3").revisions).default; + "integer-logarithms".flags.check-bounds = false; + "integer-logarithms".flags.integer-gmp = true; + "these".revision = (((hackage."these")."1.1.1.1").revisions).default; + "these".flags.assoc = true; + "bytestring".revision = (((hackage."bytestring")."0.10.8.2").revisions).default; + "ansi-wl-pprint".revision = (((hackage."ansi-wl-pprint")."0.6.9").revisions).default; + "ansi-wl-pprint".flags.example = false; + "test-framework".revision = (((hackage."test-framework")."0.8.2.0").revisions).default; + "hostname".revision = (((hackage."hostname")."1.0").revisions).default; + "old-locale".revision = (((hackage."old-locale")."1.0.0.7").revisions).default; + "HsYAML".revision = (((hackage."HsYAML")."0.2.1.0").revisions).default; + "HsYAML".flags.exe = false; + "text".revision = (((hackage."text")."1.2.3.1").revisions).default; + "Cabal".revision = (((hackage."Cabal")."2.4.0.1").revisions).default; + "assoc".revision = (((hackage."assoc")."1.0.2").revisions).default; + "unordered-containers".revision = (((hackage."unordered-containers")."0.2.13.0").revisions).default; + "unordered-containers".flags.debug = false; + "base".revision = (((hackage."base")."4.12.0.0").revisions).default; + "comonad".revision = (((hackage."comonad")."5.0.6").revisions).default; + "comonad".flags.distributive = true; + "comonad".flags.test-doctests = true; + "comonad".flags.containers = true; + "time".revision = (((hackage."time")."1.8.0.2").revisions).default; + "transformers".revision = (((hackage."transformers")."0.5.6.2").revisions).default; + "hashable".revision = (((hackage."hashable")."1.3.0.0").revisions).default; + "hashable".flags.sse2 = true; + "hashable".flags.integer-gmp = true; + "hashable".flags.sse41 = false; + "hashable".flags.examples = false; + "attoparsec".revision = (((hackage."attoparsec")."0.13.2.4").revisions).default; + "attoparsec".flags.developer = false; + "colour".revision = (((hackage."colour")."2.3.5").revisions).default; + "happy".revision = (((hackage."happy")."1.20.0").revisions).default; + "file-embed".revision = (((hackage."file-embed")."0.0.13.0").revisions).default; + "strict".revision = (((hackage."strict")."0.3.2").revisions).default; + "strict".flags.split-base = true; + "filepath".revision = (((hackage."filepath")."1.4.2.1").revisions).default; + "process".revision = (((hackage."process")."1.6.5.0").revisions).default; + "pretty".revision = (((hackage."pretty")."1.1.3.6").revisions).default; + "cabal-doctest".revision = (((hackage."cabal-doctest")."1.0.8").revisions).default; + "aeson".revision = (((hackage."aeson")."1.5.2.0").revisions).default; + "aeson".flags.cffi = false; + "aeson".flags.fast = false; + "aeson".flags.bytestring-builder = false; + "aeson".flags.developer = false; + "ghc-boot-th".revision = (((hackage."ghc-boot-th")."8.6.5").revisions).default; + "base-orphans".revision = (((hackage."base-orphans")."0.8.3").revisions).default; + "HsYAML-aeson".revision = (((hackage."HsYAML-aeson")."0.2.0.0").revisions).default; + "th-abstraction".revision = (((hackage."th-abstraction")."0.3.2.0").revisions).default; + "array".revision = (((hackage."array")."0.5.3.0").revisions).default; + "xml".revision = (((hackage."xml")."1.3.14").revisions).default; + "integer-gmp".revision = (((hackage."integer-gmp")."1.0.2.0").revisions).default; + }; + compiler = { + version = "8.6.5"; + nix-name = "ghc865"; + packages = { + "binary" = "0.8.6.0"; + "ghc-prim" = "0.5.3"; + "unix" = "2.7.2.2"; + "mtl" = "2.2.2"; + "rts" = "1.0"; + "deepseq" = "1.4.4.0"; + "parsec" = "3.1.13.0"; + "directory" = "1.3.3.0"; + "template-haskell" = "2.14.0.0"; + "containers" = "0.6.0.1"; + "bytestring" = "0.10.8.2"; + "text" = "1.2.3.1"; + "Cabal" = "2.4.0.1"; + "base" = "4.12.0.0"; + "time" = "1.8.0.2"; + "transformers" = "0.5.6.2"; + "filepath" = "1.4.2.1"; + "process" = "1.6.5.0"; + "pretty" = "1.1.3.6"; + "ghc-boot-th" = "8.6.5"; + "array" = "0.5.3.0"; + "integer-gmp" = "1.0.2.0"; + }; + }; + }; + extras = hackage: + { packages = { stylish-haskell = ./.plan.nix/stylish-haskell.nix; }; }; + modules = [ + ({ lib, ... }: + { packages = { "stylish-haskell" = { flags = {}; }; }; }) + ]; + } \ No newline at end of file diff --git a/nix/materialized/weeder/.plan.nix/weeder.nix b/nix/materialized/weeder/.plan.nix/weeder.nix new file mode 100644 index 00000000000..7cad9123cb3 --- /dev/null +++ b/nix/materialized/weeder/.plan.nix/weeder.nix @@ -0,0 +1,79 @@ +{ system + , compiler + , flags + , pkgs + , hsPkgs + , pkgconfPkgs + , errorHandler + , config + , ... }: + { + flags = {}; + package = { + specVersion = "1.18"; + identifier = { name = "weeder"; version = "1.0.9"; }; + license = "BSD-3-Clause"; + copyright = "Neil Mitchell 2017-2020"; + maintainer = "Neil Mitchell "; + author = "Neil Mitchell "; + homepage = "https://github.com/ndmitchell/weeder#readme"; + url = ""; + synopsis = "Detect dead code"; + description = "Find redundant package dependencies or redundant module exports."; + buildType = "Simple"; + isLocal = true; + detailLevel = "FullDetails"; + licenseFiles = [ "LICENSE" ]; + dataDir = ""; + dataFiles = []; + extraSrcFiles = []; + extraTmpFiles = []; + extraDocFiles = [ "README.md" "CHANGES.txt" ]; + }; + components = { + "library" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."text" or (errorHandler.buildDepError "text")) + (hsPkgs."unordered-containers" or (errorHandler.buildDepError "unordered-containers")) + (hsPkgs."yaml" or (errorHandler.buildDepError "yaml")) + (hsPkgs."vector" or (errorHandler.buildDepError "vector")) + (hsPkgs."hashable" or (errorHandler.buildDepError "hashable")) + (hsPkgs."directory" or (errorHandler.buildDepError "directory")) + (hsPkgs."deepseq" or (errorHandler.buildDepError "deepseq")) + (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) + (hsPkgs."cmdargs" or (errorHandler.buildDepError "cmdargs")) + (hsPkgs."yaml" or (errorHandler.buildDepError "yaml")) + (hsPkgs."aeson" or (errorHandler.buildDepError "aeson")) + (hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring")) + (hsPkgs."foundation" or (errorHandler.buildDepError "foundation")) + (hsPkgs."process" or (errorHandler.buildDepError "process")) + (hsPkgs."extra" or (errorHandler.buildDepError "extra")) + ] ++ (pkgs.lib).optional (compiler.isGhc && (compiler.version).lt "8.0") (hsPkgs."semigroups" or (errorHandler.buildDepError "semigroups")); + buildable = true; + modules = [ + "Cabal" + "Hi" + "Stack" + "Util" + "Check" + "Warning" + "CmdLine" + "Str" + "Paths_weeder" + "Weeder" + ]; + hsSourceDirs = [ "src" ]; + }; + exes = { + "weeder" = { + depends = [ + (hsPkgs."base" or (errorHandler.buildDepError "base")) + (hsPkgs."weeder" or (errorHandler.buildDepError "weeder")) + ]; + buildable = true; + mainPath = [ "src/Main.hs" ]; + }; + }; + }; + } // rec { src = (pkgs.lib).mkDefault ../.; } \ No newline at end of file diff --git a/nix/materialized/weeder/default.nix b/nix/materialized/weeder/default.nix new file mode 100644 index 00000000000..a62a8049451 --- /dev/null +++ b/nix/materialized/weeder/default.nix @@ -0,0 +1,162 @@ +{ + pkgs = hackage: + { + packages = { + "exceptions".revision = (((hackage."exceptions")."0.10.4").revisions).default; + "exceptions".flags.transformers-0-4 = true; + "binary".revision = (((hackage."binary")."0.8.6.0").revisions).default; + "ghc-prim".revision = (((hackage."ghc-prim")."0.5.3").revisions).default; + "bifunctors".revision = (((hackage."bifunctors")."5.5.8").revisions).default; + "bifunctors".flags.semigroups = true; + "bifunctors".flags.tagged = true; + "extra".revision = (((hackage."extra")."1.7.8").revisions).default; + "split".revision = (((hackage."split")."0.2.3.4").revisions).default; + "data-fix".revision = (((hackage."data-fix")."0.3.0").revisions).default; + "stm".revision = (((hackage."stm")."2.5.0.0").revisions).default; + "base-compat-batteries".revision = (((hackage."base-compat-batteries")."0.11.2").revisions).default; + "unix".revision = (((hackage."unix")."2.7.2.2").revisions).default; + "mtl".revision = (((hackage."mtl")."2.2.2").revisions).default; + "rts".revision = (((hackage."rts")."1.0").revisions).default; + "cmdargs".revision = (((hackage."cmdargs")."0.10.20").revisions).default; + "cmdargs".flags.testprog = false; + "cmdargs".flags.quotation = true; + "clock".revision = (((hackage."clock")."0.8").revisions).default; + "clock".flags.llvm = false; + "distributive".revision = (((hackage."distributive")."0.6.2").revisions).default; + "distributive".flags.semigroups = true; + "distributive".flags.tagged = true; + "scientific".revision = (((hackage."scientific")."0.3.6.2").revisions).default; + "scientific".flags.integer-simple = false; + "scientific".flags.bytestring-builder = false; + "deepseq".revision = (((hackage."deepseq")."1.4.4.0").revisions).default; + "random".revision = (((hackage."random")."1.2.0").revisions).default; + "uuid-types".revision = (((hackage."uuid-types")."1.0.3").revisions).default; + "splitmix".revision = (((hackage."splitmix")."0.1.0.2").revisions).default; + "splitmix".flags.optimised-mixer = false; + "dlist".revision = (((hackage."dlist")."1.0").revisions).default; + "dlist".flags.werror = false; + "conduit".revision = (((hackage."conduit")."1.3.3").revisions).default; + "parsec".revision = (((hackage."parsec")."3.1.13.0").revisions).default; + "directory".revision = (((hackage."directory")."1.3.3.0").revisions).default; + "yaml".revision = (((hackage."yaml")."0.11.5.0").revisions).default; + "yaml".flags.no-exe = true; + "yaml".flags.no-examples = true; + "transformers-compat".revision = (((hackage."transformers-compat")."0.6.6").revisions).default; + "transformers-compat".flags.five = false; + "transformers-compat".flags.generic-deriving = true; + "transformers-compat".flags.two = false; + "transformers-compat".flags.five-three = true; + "transformers-compat".flags.mtl = true; + "transformers-compat".flags.four = false; + "transformers-compat".flags.three = false; + "template-haskell".revision = (((hackage."template-haskell")."2.14.0.0").revisions).default; + "mono-traversable".revision = (((hackage."mono-traversable")."1.0.15.1").revisions).default; + "vector".revision = (((hackage."vector")."0.12.1.2").revisions).default; + "vector".flags.unsafechecks = false; + "vector".flags.internalchecks = false; + "vector".flags.wall = false; + "vector".flags.boundschecks = true; + "primitive".revision = (((hackage."primitive")."0.7.1.0").revisions).default; + "base-compat".revision = (((hackage."base-compat")."0.11.2").revisions).default; + "time-compat".revision = (((hackage."time-compat")."1.9.3").revisions).default; + "time-compat".flags.old-locale = false; + "tagged".revision = (((hackage."tagged")."0.8.6").revisions).default; + "tagged".flags.transformers = true; + "tagged".flags.deepseq = true; + "unliftio-core".revision = (((hackage."unliftio-core")."0.2.0.1").revisions).default; + "containers".revision = (((hackage."containers")."0.6.0.1").revisions).default; + "integer-logarithms".revision = (((hackage."integer-logarithms")."1.0.3").revisions).default; + "integer-logarithms".flags.check-bounds = false; + "integer-logarithms".flags.integer-gmp = true; + "these".revision = (((hackage."these")."1.1.1.1").revisions).default; + "these".flags.assoc = true; + "bytestring".revision = (((hackage."bytestring")."0.10.8.2").revisions).default; + "basement".revision = (((hackage."basement")."0.0.11").revisions).default; + "text".revision = (((hackage."text")."1.2.3.1").revisions).default; + "Cabal".revision = (((hackage."Cabal")."2.4.0.1").revisions).default; + "assoc".revision = (((hackage."assoc")."1.0.2").revisions).default; + "unordered-containers".revision = (((hackage."unordered-containers")."0.2.13.0").revisions).default; + "unordered-containers".flags.debug = false; + "base".revision = (((hackage."base")."4.12.0.0").revisions).default; + "comonad".revision = (((hackage."comonad")."5.0.6").revisions).default; + "comonad".flags.distributive = true; + "comonad".flags.test-doctests = true; + "comonad".flags.containers = true; + "time".revision = (((hackage."time")."1.8.0.2").revisions).default; + "vector-algorithms".revision = (((hackage."vector-algorithms")."0.8.0.3").revisions).default; + "vector-algorithms".flags.unsafechecks = false; + "vector-algorithms".flags.internalchecks = false; + "vector-algorithms".flags.llvm = false; + "vector-algorithms".flags.boundschecks = true; + "vector-algorithms".flags.bench = true; + "vector-algorithms".flags.properties = true; + "transformers".revision = (((hackage."transformers")."0.5.6.2").revisions).default; + "hashable".revision = (((hackage."hashable")."1.3.0.0").revisions).default; + "hashable".flags.sse2 = true; + "hashable".flags.integer-gmp = true; + "hashable".flags.sse41 = false; + "hashable".flags.examples = false; + "attoparsec".revision = (((hackage."attoparsec")."0.13.2.4").revisions).default; + "attoparsec".flags.developer = false; + "foundation".revision = (((hackage."foundation")."0.0.25").revisions).default; + "foundation".flags.minimal-deps = false; + "foundation".flags.doctest = false; + "foundation".flags.linktest = false; + "foundation".flags.experimental = false; + "foundation".flags.bounds-check = false; + "foundation".flags.bench-all = false; + "strict".revision = (((hackage."strict")."0.4").revisions).default; + "strict".flags.assoc = true; + "filepath".revision = (((hackage."filepath")."1.4.2.1").revisions).default; + "process".revision = (((hackage."process")."1.6.5.0").revisions).default; + "libyaml".revision = (((hackage."libyaml")."0.1.2").revisions).default; + "libyaml".flags.system-libyaml = false; + "libyaml".flags.no-unicode = false; + "resourcet".revision = (((hackage."resourcet")."1.2.4.2").revisions).default; + "pretty".revision = (((hackage."pretty")."1.1.3.6").revisions).default; + "cabal-doctest".revision = (((hackage."cabal-doctest")."1.0.8").revisions).default; + "aeson".revision = (((hackage."aeson")."1.5.4.1").revisions).default; + "aeson".flags.cffi = false; + "aeson".flags.fast = false; + "aeson".flags.bytestring-builder = false; + "aeson".flags.developer = false; + "ghc-boot-th".revision = (((hackage."ghc-boot-th")."8.6.5").revisions).default; + "base-orphans".revision = (((hackage."base-orphans")."0.8.3").revisions).default; + "th-abstraction".revision = (((hackage."th-abstraction")."0.4.0.0").revisions).default; + "array".revision = (((hackage."array")."0.5.3.0").revisions).default; + "integer-gmp".revision = (((hackage."integer-gmp")."1.0.2.0").revisions).default; + }; + compiler = { + version = "8.6.5"; + nix-name = "ghc865"; + packages = { + "binary" = "0.8.6.0"; + "ghc-prim" = "0.5.3"; + "stm" = "2.5.0.0"; + "unix" = "2.7.2.2"; + "mtl" = "2.2.2"; + "rts" = "1.0"; + "deepseq" = "1.4.4.0"; + "parsec" = "3.1.13.0"; + "directory" = "1.3.3.0"; + "template-haskell" = "2.14.0.0"; + "containers" = "0.6.0.1"; + "bytestring" = "0.10.8.2"; + "text" = "1.2.3.1"; + "Cabal" = "2.4.0.1"; + "base" = "4.12.0.0"; + "time" = "1.8.0.2"; + "transformers" = "0.5.6.2"; + "filepath" = "1.4.2.1"; + "process" = "1.6.5.0"; + "pretty" = "1.1.3.6"; + "ghc-boot-th" = "8.6.5"; + "array" = "0.5.3.0"; + "integer-gmp" = "1.0.2.0"; + }; + }; + }; + extras = hackage: + { packages = { weeder = ./.plan.nix/weeder.nix; }; }; + modules = [ ({ lib, ... }: { packages = { "weeder" = { flags = {}; }; }; }) ]; + } \ No newline at end of file From 6ef54cccbdf31fdbe8927cea44eccc87a4831561 Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Thu, 22 Oct 2020 10:18:50 +1000 Subject: [PATCH 5/8] nix-shell: Fix command completion with lorri --- shell.nix | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/shell.nix b/shell.nix index e04085414eb..7795b343862 100644 --- a/shell.nix +++ b/shell.nix @@ -96,19 +96,19 @@ let materialized = ./nix/materialized/weeder; }; }; + CARDANO_NODE_CONFIGS = walletPackages.cardano-node.deployments; + + # If any build input has bash completions, add it to the search + # path for shell completions. + XDG_DATA_DIRS = concatStringsSep ":" ( + [(builtins.getEnv "XDG_DATA_DIRS")] ++ + (filter + (share: builtins.pathExists (share + "/bash-completion")) + (map (p: p + "/share") buildInputs)) + ); + meta.platforms = platforms.unix; - shellHook = '' - setup_completion() { - local p - for p in $buildInputs; do - if [ -d "$p/share/bash-completion" ]; then - addToSearchPath XDG_DATA_DIRS "$p/share" - fi - done - } - setup_completion - ''; }; in if profiling From cc6fd108d29b6415504a51bb7c09103abb4719c0 Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Thu, 5 Nov 2020 22:55:03 +1000 Subject: [PATCH 6/8] Quash cleaning component source warnings in nix-shell --- nix/haskell.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nix/haskell.nix b/nix/haskell.nix index d24f1715ba4..aad07188202 100644 --- a/nix/haskell.nix +++ b/nix/haskell.nix @@ -272,6 +272,14 @@ let doHaddock = false; })) + # Silence some warnings about "cleaning component source not + # supported for hpack package" which appear in nix-shell + { + packages.cardano-addresses.cabal-generator = lib.mkForce null; + packages.cardano-addresses-cli.cabal-generator = lib.mkForce null; + packages.cardano-transactions.cabal-generator = lib.mkForce null; + } + # Allow installation of a newer version of Win32 than what is # included with GHC. The packages in this list are all those # installed with GHC, except for Win32. From 0b088e7eca0f3fb189e70f4457756e2f9f3f1ab4 Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Fri, 6 Nov 2020 16:59:14 +1000 Subject: [PATCH 7/8] Review rework of haskell tools in shell.nix --- shell.nix | 78 +++++++++++++++++++++---------------------------------- 1 file changed, 30 insertions(+), 48 deletions(-) diff --git a/shell.nix b/shell.nix index 7795b343862..29306141439 100644 --- a/shell.nix +++ b/shell.nix @@ -43,58 +43,40 @@ let yq ]); tools = let - # NOTE: Updating versions + # NOTE: Updating versions of Haskell tools # - # You will need to increase index-state and - # "niv update haskell.nix" to get recent Hackage packages. + # Modify the tool version number to a different Hackage version. + # If you have chosen a recent version, you may also need to + # advance the "index-state" variable to include the upload date + # of your package. + # + # When increasing the "index-state" variable, it's possible that + # you will also need to update Haskell.nix to get a recent + # Hackage package index. + # + # niv update haskell.nix + # + # After changing tool versions, you can update the generated + # files which are cached in ./nix/materialized. Run this + # command, follow the instructions shown, then commit the + # updated files. # - # Modify the version number, then run: # nix-shell --arg checkMaterialization true - index-state = "2020-10-20T00:00:00Z"; - mkTool = name: args: { - inherit index-state checkMaterialization; - } // (if checkMaterialization then builtins.removeAttrs args ["plan-sha256"] else args); - in mapAttrs mkTool { - cabal = { - version = "3.2.0.0"; - plan-sha256 = "0ik4ws852dk7wchbhc84w5ac149myvc1az7rxapfy0hdmiiwjh2j"; - materialized = ./nix/materialized/cabal; - }; - ghcid = { - version = "0.8.7"; - plan-sha256 = "1qqhwx1xkqllfbmiwcwfknx9595l10173rni0gfdwm9bax69j7ik"; - materialized = ./nix/materialized/ghcid; - }; - haskell-language-server = { - version = "0.5.1"; - plan-sha256 = "1iz60r763ksarr222lcd7rx3rh2lv8ascqsjw7wf54bgrl3c0nhw"; - materialized = ./nix/materialized/haskell-language-server; - }; - hoogle = { - version = "5.0.18"; - plan-sha256 = "1qsbmh7yxswj3wcjv6hvln67bkh87c1nn53ij44n89cj8l5apzss"; - materialized = ./nix/materialized/hoogle; - }; - hlint = { - version = "3.2"; - plan-sha256 = "0qjj9a98j3wj3ar0zsmdqsydnnl6bj82xf0f087nrx3x0c6d7jzl"; - materialized = ./nix/materialized/hlint; - }; - lentil = { - version = "1.3.2.0"; - plan-sha256 = "08vs2h03n5p9lkkmfx5anqgn2fbx2a3cs23p74bn2kl61fqhkb88"; - materialized = ./nix/materialized/lentil; - }; - stylish-haskell = { - version = "0.11.0.3"; - plan-sha256 = "0sys32gfz5hxavwgvv55cc8fwfrw3n8244gvsz49vv7d845fkq66"; - materialized = ./nix/materialized/stylish-haskell; - }; - weeder = { - version = "1.0.9"; - plan-sha256 = "0b2sv30jyh0xh3cqi31mc6nzv9p8496s8q2r7dpw7r95mbrlw0dx"; - materialized = ./nix/materialized/weeder; + # + mkTool = name: args: args // { + index-state = "2020-10-20T00:00:00Z"; + inherit checkMaterialization; + materialized = ./nix/materialized + "/${name}"; }; + in mapAttrs mkTool { + cabal.version = "3.2.0.0"; + ghcid.version = "0.8.7"; + haskell-language-server.version = "0.5.1"; + hoogle.version = "5.0.18"; + hlint.version = "3.2"; + lentil.version = "1.3.2.0"; + stylish-haskell.version = "0.11.0.3"; + weeder.version = "1.0.9"; }; CARDANO_NODE_CONFIGS = walletPackages.cardano-node.deployments; From 8083300b80d0eda3aaf16670a46303bc7ab7476f Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Fri, 6 Nov 2020 17:42:14 +1000 Subject: [PATCH 8/8] Remove ghcid from shell due to eval error on darwin ghcid -> fsnotify -> hfsevents --- nix/materialized/ghcid/.plan.nix/ghcid.nix | 130 --------------------- nix/materialized/ghcid/default.nix | 129 -------------------- shell.nix | 1 - 3 files changed, 260 deletions(-) delete mode 100644 nix/materialized/ghcid/.plan.nix/ghcid.nix delete mode 100644 nix/materialized/ghcid/default.nix diff --git a/nix/materialized/ghcid/.plan.nix/ghcid.nix b/nix/materialized/ghcid/.plan.nix/ghcid.nix deleted file mode 100644 index 5957ea77e50..00000000000 --- a/nix/materialized/ghcid/.plan.nix/ghcid.nix +++ /dev/null @@ -1,130 +0,0 @@ -{ system - , compiler - , flags - , pkgs - , hsPkgs - , pkgconfPkgs - , errorHandler - , config - , ... }: - { - flags = {}; - package = { - specVersion = "1.18"; - identifier = { name = "ghcid"; version = "0.8.7"; }; - license = "BSD-3-Clause"; - copyright = "Neil Mitchell 2014-2020"; - maintainer = "Neil Mitchell "; - author = "Neil Mitchell , jpmoresmau"; - homepage = "https://github.com/ndmitchell/ghcid#readme"; - url = ""; - synopsis = "GHCi based bare bones IDE"; - description = "Either \\\"GHCi as a daemon\\\" or \\\"GHC + a bit of an IDE\\\". A very simple Haskell development tool which shows you the errors in your project and updates them whenever you save. Run @ghcid --topmost --command=ghci@, where @--topmost@ makes the window on top of all others (Windows only) and @--command@ is the command to start GHCi on your project (defaults to @ghci@ if you have a @.ghci@ file, or else to @cabal repl@)."; - buildType = "Simple"; - isLocal = true; - detailLevel = "FullDetails"; - licenseFiles = [ "LICENSE" ]; - dataDir = ""; - dataFiles = []; - extraSrcFiles = []; - extraTmpFiles = []; - extraDocFiles = [ "CHANGES.txt" "README.md" ]; - }; - components = { - "library" = { - depends = [ - (hsPkgs."base" or (errorHandler.buildDepError "base")) - (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) - (hsPkgs."time" or (errorHandler.buildDepError "time")) - (hsPkgs."directory" or (errorHandler.buildDepError "directory")) - (hsPkgs."extra" or (errorHandler.buildDepError "extra")) - (hsPkgs."process" or (errorHandler.buildDepError "process")) - (hsPkgs."ansi-terminal" or (errorHandler.buildDepError "ansi-terminal")) - (hsPkgs."cmdargs" or (errorHandler.buildDepError "cmdargs")) - ]; - buildable = true; - modules = [ - "Paths_ghcid" - "Language/Haskell/Ghcid/Escape" - "Language/Haskell/Ghcid/Parser" - "Language/Haskell/Ghcid/Types" - "Language/Haskell/Ghcid/Util" - "Language/Haskell/Ghcid" - ]; - hsSourceDirs = [ "src" ]; - }; - exes = { - "ghcid" = { - depends = [ - (hsPkgs."base" or (errorHandler.buildDepError "base")) - (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) - (hsPkgs."time" or (errorHandler.buildDepError "time")) - (hsPkgs."directory" or (errorHandler.buildDepError "directory")) - (hsPkgs."containers" or (errorHandler.buildDepError "containers")) - (hsPkgs."fsnotify" or (errorHandler.buildDepError "fsnotify")) - (hsPkgs."extra" or (errorHandler.buildDepError "extra")) - (hsPkgs."process" or (errorHandler.buildDepError "process")) - (hsPkgs."cmdargs" or (errorHandler.buildDepError "cmdargs")) - (hsPkgs."ansi-terminal" or (errorHandler.buildDepError "ansi-terminal")) - (hsPkgs."terminal-size" or (errorHandler.buildDepError "terminal-size")) - ] ++ (if system.isWindows - then [ (hsPkgs."Win32" or (errorHandler.buildDepError "Win32")) ] - else [ (hsPkgs."unix" or (errorHandler.buildDepError "unix")) ]); - buildable = true; - modules = [ - "Language/Haskell/Ghcid/Escape" - "Language/Haskell/Ghcid/Parser" - "Language/Haskell/Ghcid/Terminal" - "Language/Haskell/Ghcid/Types" - "Language/Haskell/Ghcid/Util" - "Language/Haskell/Ghcid" - "Paths_ghcid" - "Session" - "Wait" - ]; - hsSourceDirs = [ "src" ]; - mainPath = [ "Ghcid.hs" ] ++ [ "" ]; - }; - }; - tests = { - "ghcid_test" = { - depends = [ - (hsPkgs."base" or (errorHandler.buildDepError "base")) - (hsPkgs."filepath" or (errorHandler.buildDepError "filepath")) - (hsPkgs."time" or (errorHandler.buildDepError "time")) - (hsPkgs."directory" or (errorHandler.buildDepError "directory")) - (hsPkgs."process" or (errorHandler.buildDepError "process")) - (hsPkgs."containers" or (errorHandler.buildDepError "containers")) - (hsPkgs."fsnotify" or (errorHandler.buildDepError "fsnotify")) - (hsPkgs."extra" or (errorHandler.buildDepError "extra")) - (hsPkgs."ansi-terminal" or (errorHandler.buildDepError "ansi-terminal")) - (hsPkgs."terminal-size" or (errorHandler.buildDepError "terminal-size")) - (hsPkgs."cmdargs" or (errorHandler.buildDepError "cmdargs")) - (hsPkgs."tasty" or (errorHandler.buildDepError "tasty")) - (hsPkgs."tasty-hunit" or (errorHandler.buildDepError "tasty-hunit")) - ] ++ (if system.isWindows - then [ (hsPkgs."Win32" or (errorHandler.buildDepError "Win32")) ] - else [ (hsPkgs."unix" or (errorHandler.buildDepError "unix")) ]); - buildable = true; - modules = [ - "Ghcid" - "Language/Haskell/Ghcid" - "Language/Haskell/Ghcid/Escape" - "Language/Haskell/Ghcid/Parser" - "Language/Haskell/Ghcid/Terminal" - "Language/Haskell/Ghcid/Types" - "Language/Haskell/Ghcid/Util" - "Paths_ghcid" - "Session" - "Test/API" - "Test/Ghcid" - "Test/Parser" - "Test/Util" - "Wait" - ]; - hsSourceDirs = [ "src" ]; - mainPath = [ "Test.hs" ]; - }; - }; - }; - } // rec { src = (pkgs.lib).mkDefault ../.; } \ No newline at end of file diff --git a/nix/materialized/ghcid/default.nix b/nix/materialized/ghcid/default.nix deleted file mode 100644 index b6b40db5128..00000000000 --- a/nix/materialized/ghcid/default.nix +++ /dev/null @@ -1,129 +0,0 @@ -{ - pkgs = hackage: - { - packages = { - "exceptions".revision = (((hackage."exceptions")."0.10.4").revisions).default; - "exceptions".flags.transformers-0-4 = true; - "binary".revision = (((hackage."binary")."0.8.6.0").revisions).default; - "ghc-prim".revision = (((hackage."ghc-prim")."0.5.3").revisions).default; - "extra".revision = (((hackage."extra")."1.7.8").revisions).default; - "stm".revision = (((hackage."stm")."2.5.0.0").revisions).default; - "unix".revision = (((hackage."unix")."2.7.2.2").revisions).default; - "mtl".revision = (((hackage."mtl")."2.2.2").revisions).default; - "lifted-async".revision = (((hackage."lifted-async")."0.10.1.2").revisions).default; - "rts".revision = (((hackage."rts")."1.0").revisions).default; - "cmdargs".revision = (((hackage."cmdargs")."0.10.20").revisions).default; - "cmdargs".flags.testprog = false; - "cmdargs".flags.quotation = true; - "clock".revision = (((hackage."clock")."0.8").revisions).default; - "clock".flags.llvm = false; - "enclosed-exceptions".revision = (((hackage."enclosed-exceptions")."1.0.3").revisions).default; - "tasty".revision = (((hackage."tasty")."1.3.1").revisions).default; - "tasty".flags.clock = true; - "deepseq".revision = (((hackage."deepseq")."1.4.4.0").revisions).default; - "optparse-applicative".revision = (((hackage."optparse-applicative")."0.16.0.0").revisions).default; - "async".revision = (((hackage."async")."2.2.2").revisions).default; - "async".flags.bench = false; - "constraints".revision = (((hackage."constraints")."0.12").revisions).default; - "semigroups".revision = (((hackage."semigroups")."0.19.1").revisions).default; - "semigroups".flags.bytestring = true; - "semigroups".flags.unordered-containers = true; - "semigroups".flags.text = true; - "semigroups".flags.tagged = true; - "semigroups".flags.containers = true; - "semigroups".flags.binary = true; - "semigroups".flags.hashable = true; - "semigroups".flags.transformers = true; - "semigroups".flags.deepseq = true; - "semigroups".flags.bytestring-builder = false; - "semigroups".flags.template-haskell = true; - "lifted-base".revision = (((hackage."lifted-base")."0.2.3.12").revisions).default; - "hsc2hs".revision = (((hackage."hsc2hs")."0.68.7").revisions).default; - "hsc2hs".flags.in-ghc-tree = false; - "directory".revision = (((hackage."directory")."1.3.3.0").revisions).default; - "transformers-compat".revision = (((hackage."transformers-compat")."0.6.6").revisions).default; - "transformers-compat".flags.five = false; - "transformers-compat".flags.generic-deriving = true; - "transformers-compat".flags.two = false; - "transformers-compat".flags.five-three = true; - "transformers-compat".flags.mtl = true; - "transformers-compat".flags.four = false; - "transformers-compat".flags.three = false; - "template-haskell".revision = (((hackage."template-haskell")."2.14.0.0").revisions).default; - "call-stack".revision = (((hackage."call-stack")."0.2.0").revisions).default; - "terminal-size".revision = (((hackage."terminal-size")."0.3.2.1").revisions).default; - "ansi-terminal".revision = (((hackage."ansi-terminal")."0.11").revisions).default; - "ansi-terminal".flags.example = false; - "tagged".revision = (((hackage."tagged")."0.8.6").revisions).default; - "tagged".flags.transformers = true; - "tagged".flags.deepseq = true; - "containers".revision = (((hackage."containers")."0.6.0.1").revisions).default; - "shelly".revision = (((hackage."shelly")."1.9.0").revisions).default; - "shelly".flags.build-examples = false; - "shelly".flags.lifted = false; - "bytestring".revision = (((hackage."bytestring")."0.10.8.2").revisions).default; - "ansi-wl-pprint".revision = (((hackage."ansi-wl-pprint")."0.6.9").revisions).default; - "ansi-wl-pprint".flags.example = false; - "wcwidth".revision = (((hackage."wcwidth")."0.0.2").revisions).default; - "wcwidth".flags.split-base = true; - "wcwidth".flags.cli = false; - "hinotify".revision = (((hackage."hinotify")."0.4").revisions).default; - "type-equality".revision = (((hackage."type-equality")."1").revisions).default; - "text".revision = (((hackage."text")."1.2.3.1").revisions).default; - "base".revision = (((hackage."base")."4.12.0.0").revisions).default; - "time".revision = (((hackage."time")."1.8.0.2").revisions).default; - "tasty-hunit".revision = (((hackage."tasty-hunit")."0.10.0.2").revisions).default; - "transformers".revision = (((hackage."transformers")."0.5.6.2").revisions).default; - "hashable".revision = (((hackage."hashable")."1.3.0.0").revisions).default; - "hashable".flags.sse2 = true; - "hashable".flags.integer-gmp = true; - "hashable".flags.sse41 = false; - "hashable".flags.examples = false; - "colour".revision = (((hackage."colour")."2.3.5").revisions).default; - "transformers-base".revision = (((hackage."transformers-base")."0.4.5.2").revisions).default; - "transformers-base".flags.orphaninstances = true; - "filepath".revision = (((hackage."filepath")."1.4.2.1").revisions).default; - "unbounded-delays".revision = (((hackage."unbounded-delays")."0.1.1.0").revisions).default; - "unix-compat".revision = (((hackage."unix-compat")."0.5.2").revisions).default; - "unix-compat".flags.old-time = false; - "monad-control".revision = (((hackage."monad-control")."1.0.2.3").revisions).default; - "process".revision = (((hackage."process")."1.6.5.0").revisions).default; - "fsnotify".revision = (((hackage."fsnotify")."0.3.0.1").revisions).default; - "pretty".revision = (((hackage."pretty")."1.1.3.6").revisions).default; - "ghc-boot-th".revision = (((hackage."ghc-boot-th")."8.6.5").revisions).default; - "base-orphans".revision = (((hackage."base-orphans")."0.8.3").revisions).default; - "array".revision = (((hackage."array")."0.5.3.0").revisions).default; - "integer-gmp".revision = (((hackage."integer-gmp")."1.0.2.0").revisions).default; - }; - compiler = { - version = "8.6.5"; - nix-name = "ghc865"; - packages = { - "binary" = "0.8.6.0"; - "ghc-prim" = "0.5.3"; - "stm" = "2.5.0.0"; - "unix" = "2.7.2.2"; - "mtl" = "2.2.2"; - "rts" = "1.0"; - "deepseq" = "1.4.4.0"; - "directory" = "1.3.3.0"; - "template-haskell" = "2.14.0.0"; - "containers" = "0.6.0.1"; - "bytestring" = "0.10.8.2"; - "text" = "1.2.3.1"; - "base" = "4.12.0.0"; - "time" = "1.8.0.2"; - "transformers" = "0.5.6.2"; - "filepath" = "1.4.2.1"; - "process" = "1.6.5.0"; - "pretty" = "1.1.3.6"; - "ghc-boot-th" = "8.6.5"; - "array" = "0.5.3.0"; - "integer-gmp" = "1.0.2.0"; - }; - }; - }; - extras = hackage: - { packages = { ghcid = ./.plan.nix/ghcid.nix; }; }; - modules = [ ({ lib, ... }: { packages = { "ghcid" = { flags = {}; }; }; }) ]; - } \ No newline at end of file diff --git a/shell.nix b/shell.nix index 29306141439..28e1b3f8422 100644 --- a/shell.nix +++ b/shell.nix @@ -70,7 +70,6 @@ let }; in mapAttrs mkTool { cabal.version = "3.2.0.0"; - ghcid.version = "0.8.7"; haskell-language-server.version = "0.5.1"; hoogle.version = "5.0.18"; hlint.version = "3.2";