diff options
author | (cdep)illabout <cdep.illabout@gmail.com> | 2021-10-25 14:53:15 +0900 |
---|---|---|
committer | (cdep)illabout <cdep.illabout@gmail.com> | 2021-10-25 15:04:50 +0900 |
commit | 9be3d05d7ce0b7681a9c5e0c1739959ba13d686e (patch) | |
tree | dddb51eb0c7ae5e392333c7fb91d75d27a0c052a /pkgs/test/dhall | |
parent | a201d9744feeb6db3db5ba41b1f391f5878937b1 (diff) |
tests.dhall.buildDhallUrl: add test
Diffstat (limited to 'pkgs/test/dhall')
-rw-r--r-- | pkgs/test/dhall/buildDhallUrl/default.nix | 14 | ||||
-rw-r--r-- | pkgs/test/dhall/default.nix | 6 |
2 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/test/dhall/buildDhallUrl/default.nix b/pkgs/test/dhall/buildDhallUrl/default.nix new file mode 100644 index 0000000000000..37992c4783b25 --- /dev/null +++ b/pkgs/test/dhall/buildDhallUrl/default.nix @@ -0,0 +1,14 @@ +{ dhallPackages, lib }: + +# 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="; + dhall-hash = "sha256:e37e31f908c7473ba9ac1770d21eb09b0075663eb266a41be77de67bc5dd3b87"; + source = true; +} diff --git a/pkgs/test/dhall/default.nix b/pkgs/test/dhall/default.nix new file mode 100644 index 0000000000000..487e045bab527 --- /dev/null +++ b/pkgs/test/dhall/default.nix @@ -0,0 +1,6 @@ +{ lib, callPackage }: + +lib.recurseIntoAttrs { + buildDhallUrl = callPackage ./buildDhallUrl { }; +} + |