aboutsummaryrefslogblamecommitdiffhomepage
path: root/dhall-1.18.nix
blob: d6522bd7f9c0157939edd743496588499bc1929b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                                           
{ pkgs ? import <nixpkgs> {} }: with pkgs;

stdenv.mkDerivation rec {
  name = "dhall-${version}";
  version = "1.18.0";
  phases = [ "installPhase "];
  src = fetchurl {
    url = "https://github.com/dhall-lang/dhall-haskell/releases/download/${version}/dhall-${version}-x86_64-linux.tar.bz2";
    sha256 = "0jvw6ss96xifb21mzpvfjzvaffcnpj0jhpc4rd36cl2r22800qgx";
  };
  installPhase = ''
    mkdir -p $out/bin
    tar -xjf $src
    mv bin/dhall $out/bin/
  '';
}