-
Notifications
You must be signed in to change notification settings - Fork 21
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
[WIP] - perl packages for devShell.networkSub to run switch_config_loader #804
Open
sarcasticadmin
wants to merge
9
commits into
master
Choose a base branch
from
rh/issue-801
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
39f9822
packages.perlNetArp: init at 1.0.12
sarcasticadmin 4fbc758
packages.perlNetInterface: init at 1.015
sarcasticadmin d2a6b69
devShells.networkSub: include perl deps
sarcasticadmin 993aa2c
packages.perlNetInterface: bumping to 1.016
sarcasticadmin 6adb4e3
packages.perlNetInterface: include which in buildInputs
sarcasticadmin 0290733
trying to refer to headers during build
sarcasticadmin 2b9569c
packages.perlNetPing: overrideAttrs for CAP_NET_RAW patch
sarcasticadmin bfc6d19
devShell.networkSub: include packages.perlNetPing
sarcasticadmin 3179981
packages.perlNetInterface: patch grepping for library headers
djacu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,7 @@ inputs.nixpkgs.lib.genAttrs | |
massflash | ||
scaleInventory | ||
serverspec | ||
perlNetArp | ||
perlNetInterface | ||
; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
perlPackages, | ||
fetchurl, | ||
}: | ||
|
||
perlPackages.buildPerlPackage { | ||
pname = "NetArp"; | ||
version = "1.0.12"; | ||
src = fetchurl { | ||
url = "mirror://cpan/authors/id/C/CR/CRAZYDJ/Net-ARP-1.0.12.tar.gz"; | ||
hash = "sha256-KK2GBaOh4PhoqYmIJvVGHYCSPm66GtXgRzfmDoug7HA="; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
perlPackages, | ||
fetchurl, | ||
linuxHeaders, | ||
which | ||
}: | ||
|
||
perlPackages.buildPerlPackage { | ||
pname = "NetInterface"; | ||
version = "1.016"; | ||
buildInputs = [ linuxHeaders which ]; | ||
doCheck = false; | ||
|
||
CPPFLAGS="-Iusr/include"; | ||
|
||
postPatch = '' | ||
mkdir -p usr/include/sys/ | ||
cp -pr ${linuxHeaders}/include usr/ | ||
ln -s ${linuxHeaders}/include/linux/socket.h usr/include/sys/socket.h | ||
ls -lahR usr/ | ||
echo "aaaaaaaa" | ||
echo $CPPFLAGS | ||
''; | ||
|
||
src = fetchurl { | ||
url = "mirror://cpan/authors/id/M/MI/MIKER/Net-Interface-1.016.tar.gz"; | ||
hash = "sha256-e+RGk14BPQ7dPTcfkvuQo7s4q+mVYoidgXiVMSnlNQg="; | ||
}; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You are seen
You are heard
Your feelings are valid.