mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
dhallPackages.buildDhallUrl: small formatting fixes
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
06a3718bc9
commit
2e1d84e9fb
|
@ -345,7 +345,7 @@ $ dhall-to-nixpkgs directory ~/proj/dhall-semver
|
|||
### Remote imports as fixed-output derivations {#ssec-dhall-remote-imports-as-fod}
|
||||
|
||||
`dhall-to-nixpkgs` has the ability to fetch and build remote imports as
|
||||
fixed-output derivations by using their Dhall integrity check. This is
|
||||
fixed-output derivations by using their Dhall integrity check. This is
|
||||
sometimes easier than manually packaging all remote imports.
|
||||
|
||||
This can be used like the following:
|
||||
|
|
|
@ -79,12 +79,10 @@ in
|
|||
runCommand name { } (''
|
||||
set -eu
|
||||
|
||||
mkdir -p ${cacheDhall}
|
||||
mkdir -p ${cacheDhall} $out/${cacheDhall}
|
||||
|
||||
export XDG_CACHE_HOME=$PWD/${cache}
|
||||
|
||||
mkdir -p $out/${cacheDhall}
|
||||
|
||||
SHA_HASH="${dhall-hash}"
|
||||
|
||||
HASH_FILE="''${SHA_HASH/sha256:/1220}"
|
||||
|
|
|
@ -3,4 +3,3 @@
|
|||
lib.recurseIntoAttrs {
|
||||
buildDhallUrl = callPackage ./buildDhallUrl { };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue