-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
new package: ccnx #4868
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
Merged
Merged
new package: ccnx #4868
Changes from all commits
Commits
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 hidden or 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,38 @@ | ||
| { stdenv, fetchurl, openssl, expat, libpcap }: | ||
| let | ||
| version = "0.8.2"; | ||
| in | ||
| stdenv.mkDerivation { | ||
| name = "ccnx-${version}"; | ||
| src = fetchurl { | ||
| url = "https://github.com/ProjectCCNx/ccnx/archive/ccnx-${version}.tar.gz"; | ||
| sha256 = "1jyk7i8529821aassxbvzlxnvl5ly0na1qcn3v1jpxhdd0qqpg00"; | ||
| }; | ||
| buildInputs = [ openssl expat libpcap ]; | ||
| preBuild = '' | ||
| mkdir -p $out/include | ||
| mkdir -p $out/lib | ||
| mkdir -p $out/bin | ||
| substituteInPlace csrc/configure --replace "/usr/local" $out | ||
| ''; | ||
| meta = with stdenv.lib; { | ||
| homepage = "http://www.ccnx.org/"; | ||
| description = "A Named Data Neworking (NDN) or Content Centric Networking (CCN) abstraction"; | ||
| longDescription = '' | ||
| To address the Internet’s modern-day requirements with a better | ||
| fitting model, PARC has created a new networking architecture | ||
| called Content-Centric Networking (CCN), which operates by addressing | ||
| and delivering Content Objects directly by Name instead of merely | ||
| addressing network end-points. In addition, the CCN security model | ||
| explicitly secures individual Content Objects rather than securing | ||
| the connection or “pipe”. Named and secured content resides in | ||
| distributed caches automatically populated on demand or selectively | ||
| pre-populated. When requested by name, CCN delivers named content to | ||
| the user from the nearest cache, thereby traversing fewer network hops, | ||
| eliminating redundant requests, and consuming less resources overall. | ||
| ''; | ||
| license = licenses.gpl2; | ||
| platforms = stdenv.lib.platforms.unix; | ||
| maintainers = [ maintainers.sjmackenzie ]; | ||
| }; | ||
| } | ||
This file contains hidden or 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
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.
IMO, it's better to rewrite as
(No
letis needed)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.
Which one is better:
letorrec?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.
Non-recursive attribute sets are preferable because they are cheaper to evaluate. I believe the actual difference is miniscule in practice, though, and both
letandrecstyles are used in Nixpkgs depending on the personal preference of the package's maintainer.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.
Polluting the shell environment with
$versionmight be another nit-picky reason, but I agree it's mostly a matter of personal taste.