Skip to content
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

Merged
merged 1 commit into from
Feb 26, 2021
Merged

netplan: init at 0.101 #114285

merged 1 commit into from
Feb 26, 2021

Conversation

mkg20001
Copy link
Member

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
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

pkgs/tools/admin/netplan/default.nix Show resolved Hide resolved
pkgs/tools/admin/netplan/default.nix Outdated Show resolved Hide resolved
repo = "netplan";
rev = version;
sha256 = "bCK7J2pCQUwjZu8c1n6jhF6T/gvUGwydqAXpxUMLgMc=";
fetchSubmodules = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Netplan has no submodules.

Copy link
Member Author

@mkg20001 mkg20001 Feb 25, 2021

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

Copy link
Member

@SuperSandro2000 SuperSandro2000 Feb 26, 2021

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.

pkgs/tools/admin/netplan/default.nix Outdated Show resolved Hide resolved
@mkg20001 mkg20001 force-pushed the netplan branch 8 times, most recently from c073bfd to cd279b2 Compare February 26, 2021 01:57
repo = "netplan";
rev = version;
hash = "sha256-bCK7J2pCQUwjZu8c1n6jhF6T/gvUGwydqAXpxUMLgMc=";
fetchSubmodules = false;
Copy link
Member

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.

Comment on lines +42 to +43
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\""
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants