mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
tests.dhall.buildDhallUrl: add test
This commit is contained in:
parent
a201d9744f
commit
9be3d05d7c
@ -55,4 +55,6 @@ with pkgs;
|
||||
trivial-overriding = callPackage ../build-support/trivial-builders/test-overriding.nix {};
|
||||
|
||||
writers = callPackage ../build-support/writers/test.nix {};
|
||||
|
||||
dhall = callPackage ./dhall { };
|
||||
}
|
||||
|
14
pkgs/test/dhall/buildDhallUrl/default.nix
Normal file
14
pkgs/test/dhall/buildDhallUrl/default.nix
Normal file
@ -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;
|
||||
}
|
6
pkgs/test/dhall/default.nix
Normal file
6
pkgs/test/dhall/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{ lib, callPackage }:
|
||||
|
||||
lib.recurseIntoAttrs {
|
||||
buildDhallUrl = callPackage ./buildDhallUrl { };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user