aboutsummaryrefslogtreecommitdiffhomepage
path: root/dhall-1.21.0.nix
diff options
context:
space:
mode:
authorPaul Bonaud <paul.bonaud@fretlink.com>2019-04-26 18:06:35 +0200
committerPaul Bonaud <paul.bonaud@fretlink.com>2019-04-26 20:42:35 +0200
commit331e852ca9f795818b7dcbb85d782dfff32c4ea2 (patch)
tree0883606ca59c0a688c86b29cfde540b0e341db59 /dhall-1.21.0.nix
parentd663610913fab7252d481664172be9e44f607764 (diff)
downloadansible-kong-app-331e852ca9f795818b7dcbb85d782dfff32c4ea2.tar.gz
ansible-kong-app-331e852ca9f795818b7dcbb85d782dfff32c4ea2.tar.zst
ansible-kong-app-331e852ca9f795818b7dcbb85d782dfff32c4ea2.zip
dhall(upgrade): upgrade code to be compatible with dhall 1.21.0
Diffstat (limited to 'dhall-1.21.0.nix')
-rw-r--r--dhall-1.21.0.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/dhall-1.21.0.nix b/dhall-1.21.0.nix
new file mode 100644
index 0000000..e53369b
--- /dev/null
+++ b/dhall-1.21.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.21.0" "0x7q6v1y62fq6724kx1hcfp1fcqv3lbv33ji6jzfd5y316a31r77"