diff options
| author | Gabriella Gonzalez <Gabriel439@gmail.com> | 2021-08-21 19:25:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-21 19:25:01 -0700 |
| commit | 9a8850aea97840dca1cc1087447ed89dbfe183dc (patch) | |
| tree | 00b97e2190a220763b7db17651cd14ec4fc8725f /pkgs/development/python-modules/rangehttpserver | |
| parent | 1c145df9ae6f06d96e1e3127011ec3513b09dd3e (diff) | |
dhallToNix: Permit inputs referring to derivations (#134459)
Fixes https://github.com/dhall-lang/dhall-haskell/issues/2267
`pkgs.dhallToNix` currently fails when a Dhall package is
interpolated into the input source code, like this:
```nix
let
pkgs = import <nixpkgs> { };
f = { buildDhallPackage }: buildDhallPackage {
name = "not";
code = "λ(x : Bool) → x == False";
source = true;
};
not = pkgs.dhallPackages.callPackage f {};
in
pkgs.dhallToNix "${not}/source.dhall True"
```
This is because `dhallToNix` was using `builtins.toFile`, which
does not permit inputs with interpolated derivations. However,
`pkgs.writeText` does not have this limitation, so we can switch
to using that instead.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
