hostname-debian: set main program and use in more places#422282
hostname-debian: set main program and use in more places#422282mweinelt merged 6 commits intoNixOS:masterfrom
Conversation
This is the simpler, more lightweight and better maintained version of the hostname utility.
This is the simpler, more lightweight and better maintained version of the hostname utility.
|
We probably want to add nixpkgs/pkgs/by-name/xd/xdg-utils/package.nix Line 209 in ee63ec6 |
This is the simpler, more lightweight and better maintained version of the hostname utility.
|
Is this failure from the tests relevant? @ofborg test zfs_2_3 |
|
This leads to a different hash, thereby breaking the test.
| echo "setting host name..." | ||
| if [ -s /etc/ec2-metadata/hostname ]; then | ||
| ${pkgs.nettools}/bin/hostname $(cat /etc/ec2-metadata/hostname) | ||
| ${lib.getExe hostname-debian} -F /etc/ec2-metadata/hostname |
There was a problem hiding this comment.
I've got undefined variable 'hostname-debian'. Shouldn't it be pkgs.hostname-debian?
|
Interestingly, this "broke" (now refuses to evaluate) Obviously, it was probably not expected for |
|
Yes, please limit it to whatever platforms wlroots supports. |
|
This broke |
|
I would instead try to make hostname-debian to work on darwin. |
|
Or alternatively: https://cgit.freebsd.org/src/tree/bin/hostname |
It seems like darwin support was intentionally added in Maybe @wegank has some insight for when/why wl-clipboard would be needed on darwin? |
|
I've updated the platform list for wl-clipboard because upstream expects this, but it indeed has no real use... |
The debian hostname utility is a small replacement for the version from net-tools. The net-tools suite has been badly maintained since at least a decade, so we should phase out its use.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.