about summary refs log tree commit diff
path: root/pkgs/test/dhall/buildDhallUrl/default.nix
blob: f266cde11a5169f5129b7195786bfdd401e8d3ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ dhallPackages }:

# This file tests that dhallPackages.buildDhallUrl is able to successfully
# build a Nix Dhall package for a given remote Dhall import.
#
# TODO: It would be nice to extend this test to make sure that the resulting
# Nix Dhall package is has the expected contents.

dhallPackages.buildDhallUrl {
  url = "https://raw.githubusercontent.com/cdepillabout/example-dhall-nix/e6a675c72ecd4dd23d254a02aea8181fe875747f/mydhallfile.dhall";
  hash = "sha256-434x+QjHRzuprBdw0h6wmwB1Zj6yZqQb533me8XdO4c=";
  dhallHash = "sha256-434x+QjHRzuprBdw0h6wmwB1Zj6yZqQb533me8XdO4c=";
  source = true;
}