about summary refs log tree commit diff
path: root/pkgs/development/compilers/elm/packages/ghc9_2
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/elm/packages/ghc9_2')
-rw-r--r--pkgs/development/compilers/elm/packages/ghc9_2/default.nix53
-rw-r--r--pkgs/development/compilers/elm/packages/ghc9_2/elm-format/avh4-lib.nix26
-rw-r--r--pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format-lib.nix29
-rw-r--r--pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format-markdown.nix15
-rw-r--r--pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format-test-lib.nix26
-rw-r--r--pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format.nix31
6 files changed, 0 insertions, 180 deletions
diff --git a/pkgs/development/compilers/elm/packages/ghc9_2/default.nix b/pkgs/development/compilers/elm/packages/ghc9_2/default.nix
deleted file mode 100644
index 5ef5eff3bef1..000000000000
--- a/pkgs/development/compilers/elm/packages/ghc9_2/default.nix
+++ /dev/null
@@ -1,53 +0,0 @@
-{ pkgs, lib }:
-
-self: pkgs.haskell.packages.ghc92.override {
-  overrides = self: super: with pkgs.haskell.lib.compose; with lib;
-    let
-      elmPkgs = rec {
-        /*
-          The elm-format expression is updated via a script in the https://github.com/avh4/elm-format repo:
-          `package/nix/build.sh`
-        */
-        elm-format = justStaticExecutables (overrideCabal
-          (drv: {
-            jailbreak = true;
-            doHaddock = false;
-            postPatch = ''
-              mkdir -p ./generated
-              cat <<EOHS > ./generated/Build_elm_format.hs
-              module Build_elm_format where
-              gitDescribe :: String
-              gitDescribe = "${drv.version}"
-              EOHS
-            '';
-
-            description = "Formats Elm source code according to a standard set of rules based on the official Elm Style Guide";
-            homepage = "https://github.com/avh4/elm-format";
-            license = licenses.bsd3;
-            maintainers = with maintainers; [ avh4 turbomack ];
-          })
-          (self.callPackage ./elm-format/elm-format.nix { }));
-      };
-
-      fixHaddock = overrideCabal (_: {
-        configureFlags = [ "--ghc-option=-Wno-error=unused-packages" ];
-        doHaddock = false;
-      });
-    in
-    elmPkgs // {
-      inherit elmPkgs;
-
-      # Needed for elm-format
-      avh4-lib = fixHaddock (doJailbreak (self.callPackage ./elm-format/avh4-lib.nix { }));
-      elm-format-lib =  fixHaddock (doJailbreak (self.callPackage ./elm-format/elm-format-lib.nix { }));
-      elm-format-test-lib = fixHaddock (self.callPackage ./elm-format/elm-format-test-lib.nix { });
-      elm-format-markdown = fixHaddock (self.callPackage ./elm-format/elm-format-markdown.nix { });
-
-      # elm-format requires text >= 2.0
-      text = self.text_2_0_2;
-      # unorderd-container's tests indirectly depend on text < 2.0
-      unordered-containers = overrideCabal (drv: { doCheck = false; }) super.unordered-containers;
-      # relude-1.1.0.0's tests depend on hedgehog < 1.2, which indirectly depends on text < 2.0
-      relude = overrideCabal (drv: { doCheck = false; }) super.relude;
-    };
-}
diff --git a/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/avh4-lib.nix b/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/avh4-lib.nix
deleted file mode 100644
index e320edfd1162..000000000000
--- a/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/avh4-lib.nix
+++ /dev/null
@@ -1,26 +0,0 @@
-{ mkDerivation, array, base, bytestring, directory, fetchgit
-, filepath, lib, mtl, pooled-io, process, relude, tasty
-, tasty-discover, tasty-hspec, tasty-hunit, text
-}:
-mkDerivation {
-  pname = "avh4-lib";
-  version = "0.0.0.1";
-  src = fetchgit {
-    url = "https://github.com/avh4/elm-format";
-    sha256 = "04l1bn4w8q3ifd6mc4mfrqxfbihmqnpfjdn6gr0x2jqcasjbk0bi";
-    rev = "b5cca4c26b473dab06e5d73b98148637e4770d45";
-    fetchSubmodules = true;
-  };
-  postUnpack = "sourceRoot+=/avh4-lib; echo source root reset to $sourceRoot";
-  libraryHaskellDepends = [
-    array base bytestring directory filepath mtl pooled-io process
-    relude text
-  ];
-  testHaskellDepends = [
-    array base bytestring directory filepath mtl pooled-io process
-    relude tasty tasty-hspec tasty-hunit text
-  ];
-  testToolDepends = [ tasty-discover ];
-  description = "Common code for haskell projects";
-  license = lib.licenses.bsd3;
-}
diff --git a/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format-lib.nix b/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format-lib.nix
deleted file mode 100644
index 290534bbea9a..000000000000
--- a/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format-lib.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-{ mkDerivation, aeson, avh4-lib, base, bimap, binary, bytestring
-, containers, elm-format-markdown, elm-format-test-lib, fetchgit
-, hspec, lib, mtl, optparse-applicative, relude, split, tasty
-, tasty-discover, tasty-hspec, tasty-hunit, text
-}:
-mkDerivation {
-  pname = "elm-format-lib";
-  version = "0.0.0.1";
-  src = fetchgit {
-    url = "https://github.com/avh4/elm-format";
-    sha256 = "04l1bn4w8q3ifd6mc4mfrqxfbihmqnpfjdn6gr0x2jqcasjbk0bi";
-    rev = "b5cca4c26b473dab06e5d73b98148637e4770d45";
-    fetchSubmodules = true;
-  };
-  postUnpack = "sourceRoot+=/elm-format-lib; echo source root reset to $sourceRoot";
-  libraryHaskellDepends = [
-    aeson avh4-lib base bimap binary bytestring containers
-    elm-format-markdown mtl optparse-applicative relude text
-  ];
-  testHaskellDepends = [
-    aeson avh4-lib base bimap binary bytestring containers
-    elm-format-markdown elm-format-test-lib hspec mtl
-    optparse-applicative relude split tasty tasty-hspec tasty-hunit
-    text
-  ];
-  testToolDepends = [ tasty-discover ];
-  description = "Common code used by elm-format and elm-refactor";
-  license = lib.licenses.bsd3;
-}
diff --git a/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format-markdown.nix b/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format-markdown.nix
deleted file mode 100644
index e57d2127822e..000000000000
--- a/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format-markdown.nix
+++ /dev/null
@@ -1,15 +0,0 @@
-{ mkDerivation, base, containers, fetchgit, lib, mtl, text }:
-mkDerivation {
-  pname = "elm-format-markdown";
-  version = "0.0.0.1";
-  src = fetchgit {
-    url = "https://github.com/avh4/elm-format";
-    sha256 = "04l1bn4w8q3ifd6mc4mfrqxfbihmqnpfjdn6gr0x2jqcasjbk0bi";
-    rev = "b5cca4c26b473dab06e5d73b98148637e4770d45";
-    fetchSubmodules = true;
-  };
-  postUnpack = "sourceRoot+=/elm-format-markdown; echo source root reset to $sourceRoot";
-  libraryHaskellDepends = [ base containers mtl text ];
-  description = "Markdown parsing for Elm documentation comments";
-  license = lib.licenses.bsd3;
-}
diff --git a/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format-test-lib.nix b/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format-test-lib.nix
deleted file mode 100644
index 43090abbeae4..000000000000
--- a/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format-test-lib.nix
+++ /dev/null
@@ -1,26 +0,0 @@
-{ mkDerivation, avh4-lib, base, containers, fetchgit, filepath
-, hspec, hspec-core, hspec-golden, lib, mtl, split, tasty
-, tasty-discover, tasty-hspec, tasty-hunit, text
-}:
-mkDerivation {
-  pname = "elm-format-test-lib";
-  version = "0.0.0.1";
-  src = fetchgit {
-    url = "https://github.com/avh4/elm-format";
-    sha256 = "04l1bn4w8q3ifd6mc4mfrqxfbihmqnpfjdn6gr0x2jqcasjbk0bi";
-    rev = "b5cca4c26b473dab06e5d73b98148637e4770d45";
-    fetchSubmodules = true;
-  };
-  postUnpack = "sourceRoot+=/elm-format-test-lib; echo source root reset to $sourceRoot";
-  libraryHaskellDepends = [
-    avh4-lib base containers filepath hspec hspec-core hspec-golden mtl
-    split tasty-hunit text
-  ];
-  testHaskellDepends = [
-    avh4-lib base containers filepath hspec hspec-core hspec-golden mtl
-    split tasty tasty-hspec tasty-hunit text
-  ];
-  testToolDepends = [ tasty-discover ];
-  description = "Test helpers used by elm-format-tests and elm-refactor-tests";
-  license = lib.licenses.bsd3;
-}
diff --git a/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format.nix b/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format.nix
deleted file mode 100644
index 9389a4cbb640..000000000000
--- a/pkgs/development/compilers/elm/packages/ghc9_2/elm-format/elm-format.nix
+++ /dev/null
@@ -1,31 +0,0 @@
-{ mkDerivation, aeson, ansi-wl-pprint, avh4-lib, base, bytestring
-, elm-format-lib, elm-format-test-lib, fetchgit, hspec, lib
-, optparse-applicative, QuickCheck, quickcheck-io, relude, tasty
-, tasty-hspec, tasty-hunit, tasty-quickcheck, text
-}:
-mkDerivation {
-  pname = "elm-format";
-  version = "0.8.7";
-  src = fetchgit {
-    url = "https://github.com/avh4/elm-format";
-    sha256 = "04l1bn4w8q3ifd6mc4mfrqxfbihmqnpfjdn6gr0x2jqcasjbk0bi";
-    rev = "b5cca4c26b473dab06e5d73b98148637e4770d45";
-    fetchSubmodules = true;
-  };
-  isLibrary = false;
-  isExecutable = true;
-  executableHaskellDepends = [
-    aeson ansi-wl-pprint avh4-lib base bytestring elm-format-lib
-    optparse-applicative relude text
-  ];
-  testHaskellDepends = [
-    aeson ansi-wl-pprint avh4-lib base bytestring elm-format-lib
-    elm-format-test-lib hspec optparse-applicative QuickCheck
-    quickcheck-io relude tasty tasty-hspec tasty-hunit tasty-quickcheck
-    text
-  ];
-  homepage = "https://elm-lang.org";
-  description = "Source code formatter for Elm";
-  license = lib.licenses.bsd3;
-  mainProgram = "elm-format";
-}