-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netplan: init at 0.101 #114285
netplan: init at 0.101 #114285
Conversation
pkgs/tools/admin/netplan/default.nix
Outdated
repo = "netplan"; | ||
rev = version; | ||
sha256 = "bCK7J2pCQUwjZu8c1n6jhF6T/gvUGwydqAXpxUMLgMc="; | ||
fetchSubmodules = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Netplan has no submodules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is from nix-prefetch-github CannonicalLtd netplan --nix
- this should not have it set to true either then, it gets copypasted from there a lot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create an upstream issue about this instead of telling me.
c073bfd
to
cd279b2
Compare
repo = "netplan"; | ||
rev = version; | ||
hash = "sha256-bCK7J2pCQUwjZu8c1n6jhF6T/gvUGwydqAXpxUMLgMc="; | ||
fetchSubmodules = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Settings this to false is not required and should be removed.
substituteInPlace netplan/cli/utils.py --replace "/lib/netplan/generate" "$out/lib/netplan/generate" | ||
substituteInPlace netplan/cli/utils.py --replace "ctypes.util.find_library('netplan')" "\"$out/lib/libnetplan.so\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two can be combined
Motivation for this change
Add new package
For anyone wondering how this is useful even thought nixOS is declarative: NetworkManager isn't and so that's the perfect addition
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)