Import From Derivation: Difference between revisions
imported>Asymmetric Undo revision 6945 by Asymmetric (talk) |
imported>Srid IFD and haskell |
||
| Line 93: | Line 93: | ||
* <code>lib.cleanSource { src = f drv; }</code> | * <code>lib.cleanSource { src = f drv; }</code> | ||
* ... | * ... | ||
== IFD and Haskell == | |||
<code>callCabal2nix</code>, which is implicitly used for building Haskell projects, uses IFD.[https://github.com/NixOS/templates/issues/28][https://discourse.nixos.org/t/another-simple-flake-for-haskell-development/18164/6]. This means that since IFD is disabled by default in certain nix commands,[https://github.com/NixOS/nix/pull/5253] the following commands will be broken for Haskell projects whose flake output specifies multiple system attributes: | |||
* <code>nix flake show</code> | |||
* <code>nix flake check</code> | |||
== Further reading == | == Further reading == | ||
* https://fzakaria.com/2020/10/20/nix-parallelism-import-from-derivation.html | * https://fzakaria.com/2020/10/20/nix-parallelism-import-from-derivation.html | ||