Repository navigation
unixtools: refactor for less redundancy - #40134
Conversation
b1bad48 to
898e4b0
Compare
There was a problem hiding this comment.
This shouldn't be included.
There was a problem hiding this comment.
Yeah, right you are, it was an accidental paste and I mistook it for an accidental deletion
898e4b0 to
4b93f21
Compare
matthewbauer
left a comment
There was a problem hiding this comment.
Looks good! Not huge line saving but will make it easier to add more.
| darwin = pkgs.darwin.basic_cmds; | ||
|
|
||
| makeCompat = name': value: buildEnv { | ||
| name = name' + "-compat"; |
There was a problem hiding this comment.
Make sure these have 2 space indentation.
|
(Looks like master machine broke, probably shouldn't merge this until that is fixed, just to make sure it won't trigger a mass rebuild) |
|
The eval error was hopefully unrelated. @GrahamcOfBorg eval |
|
Looks like its fine now |
|
Thanks! |
|
Unfortunately this complicates merging with staging, which made changes to unix-tools before the reformatting. Can someone take a look? Thanks! |
|
Just merged master into staging. |
|
@matthewbauer haha thanks! 😸 |
|
Wew, that was quick 😅 |
Motivation for this change
unix-toolsdidn't quite follow the DRY principle, refactored it to follow this principle better.This shouldn't actually change the output of any derivation, just the way we get there, so @GrahamcOfBorg shouldn't give any rebuilds.
Things done
build-use-sandboxinnix.confon non-NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)