2021-04-18 10:29:49 +02:00
|
|
|
{ ... }:
|
|
|
|
|
2022-06-18 14:33:51 +02:00
|
|
|
self: super:
|
2021-04-10 14:00:13 +02:00
|
|
|
|
|
|
|
let
|
2022-06-18 14:33:51 +02:00
|
|
|
dhall-source = subdir: pkg: super.haskell.lib.overrideSrc pkg {
|
|
|
|
src = "${super.fetchFromGitHub {
|
|
|
|
owner = "Profpatsch";
|
|
|
|
repo = "dhall-haskell";
|
2022-06-19 14:46:44 +02:00
|
|
|
# https://github.com/dhall-lang/dhall-haskell/pull/2426
|
|
|
|
rev = "82123817316192d39f9a3e68b8ce9c9cff0a48ed";
|
|
|
|
sha256 = "sha256-gbHoUKIdLPIttqeV471jsT8OJz6uiI6LpHOwtLbBGHY=";
|
2022-06-18 14:33:51 +02:00
|
|
|
}}/${subdir}";
|
|
|
|
};
|
|
|
|
|
2021-04-10 14:00:13 +02:00
|
|
|
# binary releases of dhall tools, since the build in nixpkgs is
|
|
|
|
# broken most of the time. The binaries are also fully static
|
|
|
|
# builds, instead of the half-static crap that nixpkgs produces.
|
|
|
|
easy-dhall-nix =
|
|
|
|
import
|
|
|
|
(builtins.fetchTarball {
|
2022-02-28 15:24:14 +01:00
|
|
|
url = "https://github.com/justinwoo/easy-dhall-nix/archive/dce9acbb99776a7f1344db4751d6080380f76f57.tar.gz";
|
|
|
|
sha256 = "0ckp6515gfvbxm08yyll87d9vg8sq2l21gwav2npzvwc3xz2lccf";
|
2021-04-10 14:00:13 +02:00
|
|
|
})
|
2022-06-19 14:46:44 +02:00
|
|
|
{ pkgs = self; };
|
2021-04-10 14:00:13 +02:00
|
|
|
in
|
|
|
|
{
|
2022-06-18 14:33:51 +02:00
|
|
|
# TODO: this is to fix a bug in dhall-nix
|
|
|
|
haskellPackages = super.haskellPackages.override {
|
|
|
|
overrides = hsSelf: hsSuper: {
|
|
|
|
dhall = dhall-source "dhall" hsSuper.dhall;
|
|
|
|
dhall-nix = dhall-source "dhall-nix" hsSuper.dhall-nix;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# dhall = easy-dhall-nix.dhall-simple;
|
|
|
|
# dhall-nix = easy-dhall-nix.dhall-nix-simple;
|
2021-04-10 14:00:13 +02:00
|
|
|
dhall-bash = easy-dhall-nix.dhall-bash-simple;
|
|
|
|
dhall-docs = easy-dhall-nix.dhall-docs-simple;
|
|
|
|
dhall-json = easy-dhall-nix.dhall-json-simple;
|
|
|
|
dhall-lsp-server = easy-dhall-nix.dhall-lsp-simple;
|
|
|
|
# not yet in dhall-simple
|
|
|
|
# dhall-nixpkgs = easy-dhall-nix.dhall-nixpkgs-simple;
|
|
|
|
dhall-yaml = easy-dhall-nix.dhall-yaml-simple;
|
|
|
|
}
|