Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
215 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,43 @@ | ||
{ lib | ||
, rustPlatform | ||
, fetchFromGitHub | ||
, pkg-config | ||
, openssl | ||
, stdenv | ||
, darwin | ||
}: | ||
|
||
rustPlatform.buildRustPackage rec { | ||
pname = "narrowlink"; | ||
version = "0.1.4"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "narrowlink"; | ||
repo = "narrowlink"; | ||
rev = version; | ||
hash = "sha256-vef7ctauSl0xfYNqjvl8wLGbqzzkMItz1O7sT1UZ4b0="; | ||
}; | ||
|
||
# Cargo.lock is outdated | ||
cargoPatches = [ ./Cargo.lock.patch ]; | ||
|
||
cargoHash = "sha256-craOunscE6o8PXtZFCYpkFH/amkuLOK7SrV+XHbS2GM="; | ||
|
||
nativeBuildInputs = [ | ||
pkg-config | ||
]; | ||
|
||
buildInputs = [ | ||
openssl | ||
] ++ lib.optionals stdenv.isDarwin [ | ||
darwin.apple_sdk_11_0.frameworks.IOKit | ||
darwin.apple_sdk_11_0.frameworks.Security | ||
]; | ||
|
||
meta = { | ||
description = "Narrowlink securely connects devices and services together, even when both nodes are behind separate NAT"; | ||
homepage = "https://github.com/narrowlink/narrowlink"; | ||
license = with lib.licenses; [ agpl3Only mpl20 ]; # the gateway component is AGPLv3, the rest is MPLv2 | ||
maintainers = with lib.maintainers; [ dit7ya ]; | ||
}; | ||
} |
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