Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cdepillabout committed Jul 26, 2023
1 parent d49b7e6 commit 800af24
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 2023-07-24-fodonuts.md
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ FODONUTs are quite useful for tests, but have a few downsides as well:

I know of a few examples of FODONUTs in the wild:

1. [Stack / Hpack version test](https://github.com/NixOS/nixpkgs/blob/c78223a5fff5cd89819a88f23de03d3b8d45c796/pkgs/test/haskell/upstreamStackHpackVersion/default.nix)[^9]
1. [Stack / Hpack version test](https://github.com/NixOS/nixpkgs/blob/c78223a5fff5cd89819a88f23de03d3b8d45c796/pkgs/test/haskell/upstreamStackHpackVersion/default.nix)[^9] in Nixpkgs

This is a test to make sure that the version of the `hpack` dependency used
by `stack` in Nixpkgs matches the same version as upstream. This test
Expand Down Expand Up @@ -767,6 +767,12 @@ I know of a few examples of FODONUTs in the wild:
This doesn't technically use FODONUTs, but it does contain a FOD with a
[carefully constructed `name`](https://github.com/cdepillabout/evil-nix/blob/415e2fdc6b6897f2bff7f068edbc3d70a8b9ec2b/nix/evil/downloadBitNum.nix#L43).

4. The [repro-get pkg-version test](https://github.com/NixOS/nixpkgs/blob/d2128e82eeb1ace7c424a86e035ac9b1ad8451f2/pkgs/tools/package-management/repro-get/default.nix#L45-L59) in Nixpkgs

This was [authored](https://github.com/NixOS/nixpkgs/pull/207988) by
[Matthew Croughan](https://github.com/MatthewCroughan) and
[Robert Hensing](https://github.com/roberth).

I imagine there are more examples of FODONUTs being used in other projects and
proprietary repos. If you have an example of a FODONUT,
[please share](https://discourse.nixos.org/t/fodonuts-fixed-output-derivations-for-operating-network-utilizing-tests/30874)!
Expand Down

0 comments on commit 800af24

Please sign in to comment.