mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
tests.dhall.generateDhallDirectoryPackage: init
This commit is contained in:
parent
a1933f6a9d
commit
cfb2fd768e
@ -2,4 +2,5 @@
|
||||
|
||||
lib.recurseIntoAttrs {
|
||||
buildDhallUrl = callPackage ./buildDhallUrl { };
|
||||
generateDhallDirectoryPackage = callPackage ./generateDhallDirectoryPackage { };
|
||||
}
|
||||
|
17
pkgs/test/dhall/generateDhallDirectoryPackage/default.nix
Normal file
17
pkgs/test/dhall/generateDhallDirectoryPackage/default.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ dhallPackages, fetchFromGitHub }:
|
||||
|
||||
# This file tests that dhallPackages.generateDhallDirectoryPackage works.
|
||||
#
|
||||
# TODO: It would be nice to extend this test to make sure that the resulting
|
||||
# Nix file has the expected contents, but it might be tough to do that easily
|
||||
# without IFD.
|
||||
|
||||
dhallPackages.generateDhallDirectoryPackage {
|
||||
src = fetchFromGitHub {
|
||||
owner = "cdepillabout";
|
||||
repo = "example-dhall-nix";
|
||||
rev = "e6a675c72ecd4dd23d254a02aea8181fe875747f";
|
||||
sha256 = "sha256-c/EZq76s/+hmLkaeJWKqgh2KrHuJRYI6kWry0E0YQ6s=";
|
||||
};
|
||||
file = "mydhallfile.dhall";
|
||||
}
|
Loading…
Reference in New Issue
Block a user