NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.33k stars 14.3k forks source link

lib.throw* patterns? #107079

Open abathur opened 3 years ago

abathur commented 3 years ago

I was just looking for examples of what context people usually provide via throw and noticed while searching that there's a lot of overlap/repetition and a few competing variants of some common tropes (for example, throwing on a system/platform/arch mismatch).

It made me think there might be some consistency/maintenance wins from extracting and standardizing some common throw patterns treewide?

Sample search: https://github.com/NixOS/nixpkgs/search?q=throw+system+language%3Anix&type=code

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info