uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
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=";
|
||||
dhallHash = "sha256-434x+QjHRzuprBdw0h6wmwB1Zj6yZqQb533me8XdO4c=";
|
||||
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 { };
|
||||
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…
Add table
Add a link
Reference in a new issue