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
|
|
@ -0,0 +1,27 @@
|
|||
{ dhall-nixpkgs, lib, stdenv }:
|
||||
|
||||
# This function calls `dhall-to-nixpkgs directory --fixed-output-derivations`
|
||||
# within a Nix derivation.
|
||||
#
|
||||
# This is possible because
|
||||
# `dhall-to-nixpkgs directory --fixed-output-derivations` will turn remote
|
||||
# Dhall imports protected with Dhall integrity checksinto fixed-output
|
||||
# derivations (with the `buildDhallUrl` function), so no unrestricted network
|
||||
# access is necessary.
|
||||
lib.makePackageOverridable
|
||||
( { src
|
||||
, # The file to import, relative to the root directory
|
||||
file ? "package.dhall"
|
||||
, # Set to `true` to generate documentation for the package
|
||||
document ? false
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
name = "dhall-directory-package.nix";
|
||||
|
||||
buildCommand = ''
|
||||
dhall-to-nixpkgs directory --fixed-output-derivations --file "${file}" "${src}" ${if document then "--document" else ""} > $out
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ dhall-nixpkgs ];
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue