aboutsummaryrefslogtreecommitdiffhomepage
path: root/dhall-1.26.1.nix
blob: 918a528a197ee1942ea3490c9ad3fdac850b0d74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ pkgs ? import <nixpkgs> {} }: 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.26.1" "0sl4r3mfairgd6kn26hs1r1lkh8rn992grd73078rhqf5w90ag05"