From 331e852ca9f795818b7dcbb85d782dfff32c4ea2 Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Fri, 26 Apr 2019 18:06:35 +0200 Subject: dhall(upgrade): upgrade code to be compatible with dhall 1.21.0 --- dhall-1.21.0.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 dhall-1.21.0.nix (limited to 'dhall-1.21.0.nix') 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 @@ +{ pkgs ? import {} }: with pkgs; + +let + mkVersion = + version: sha256: + stdenv.mkDerivation { + name = "dhall-${version}"; + inherit version; + src = fetchurl { + url = "https://github.com/dhall-lang/dhall-haskell/releases/download/${version}/dhall-${version}-x86_64-linux.tar.bz2"; + inherit sha256; + }; + unpackPhase = '' + tar -xjf $src + ''; + installPhase = '' + mkdir -p $out/bin + mv bin/dhall $out/bin/ + ''; + }; +in + mkVersion "1.21.0" "0x7q6v1y62fq6724kx1hcfp1fcqv3lbv33ji6jzfd5y316a31r77" -- cgit v1.2.3