aboutsummaryrefslogtreecommitdiffhomepage
path: root/dhall-1.34.0.nix
diff options
context:
space:
mode:
authorPaul Bonaud <paul.bonaud@fretlink.com>2020-08-13 16:01:49 +0200
committerPaul Bonaud <paul.bonaud@fretlink.com>2020-08-13 16:32:20 +0200
commitd8c5e33f6015e3f17aaf5fd290b1834e6e6c1049 (patch)
tree034b7aabaecd61229985c3346a75e4496f89743e /dhall-1.34.0.nix
parent25250c8c24a3c0b32c92eee5552ad7156115f03c (diff)
downloadansible-kong-app-d8c5e33f6015e3f17aaf5fd290b1834e6e6c1049.tar.gz
ansible-kong-app-d8c5e33f6015e3f17aaf5fd290b1834e6e6c1049.tar.zst
ansible-kong-app-d8c5e33f6015e3f17aaf5fd290b1834e6e6c1049.zip
dhall: BREAKING CHANGE update dhall config for 1.33+ compatibility
Since dhall 1.33.0 lang version the `Optional/fold` function is removed from the language and can be replaced by the usage of the `merge` function which now works on Optional values 🎉 since 1.29 https://github.com/dhall-lang/dhall-haskell/pull/1608 This new code is thus not compatible with versions of dhall <1.29.0 (due to the new feature of the `merge` fonction).
Diffstat (limited to 'dhall-1.34.0.nix')
-rw-r--r--dhall-1.34.0.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/dhall-1.34.0.nix b/dhall-1.34.0.nix
new file mode 100644
index 0000000..a70d201
--- /dev/null
+++ b/dhall-1.34.0.nix
@@ -0,0 +1,22 @@
1{ pkgs ? import <nixpkgs> {} }: with pkgs;
2
3let
4 mkVersion =
5 version: sha256:
6 stdenv.mkDerivation {
7 name = "dhall-${version}";
8 inherit version;
9 src = fetchurl {
10 url = "https://github.com/dhall-lang/dhall-haskell/releases/download/${version}/dhall-${version}-x86_64-linux.tar.bz2";
11 inherit sha256;
12 };
13 unpackPhase = ''
14 tar -xjf $src
15 '';
16 installPhase = ''
17 mkdir -p $out/bin
18 mv bin/dhall $out/bin/
19 '';
20 };
21in
22 mkVersion "1.34.0" "0n64jkgbv7a3cmlv3gxpgc11p9b5w0k9nc0zm9am2pzmp6vm6b4n"