blob: f8fe7ce4bfb02fd577effc0a5718d58394de1ef5 (
plain) (
tree)
|
|
{ pkgs ? import <nixpkgs> {} }: with pkgs;
let
mkDhallVersion =
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
{
dhall = mkDhallVersion "1.34.0" "0n64jkgbv7a3cmlv3gxpgc11p9b5w0k9nc0zm9am2pzmp6vm6b4n";
}
|