Skip to content

Commit

Permalink
narrowlink: init at 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dit7ya committed Aug 24, 2023
1 parent 3133003 commit 2f10a5f
Show file tree
Hide file tree
Showing 3 changed files with 215 additions and 0 deletions.
170 changes: 170 additions & 0 deletions pkgs/tools/networking/narrowlink/Cargo.lock.patch

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions pkgs/tools/networking/narrowlink/default.nix
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -40177,6 +40177,8 @@ with pkgs;

mysides = callPackage ../os-specific/darwin/mysides { };

narrowlink = callPackage ../tools/networking/narrowlink { };

nar-serve = callPackage ../tools/nix/nar-serve { };

neo = callPackage ../applications/misc/neo { };
Expand Down

0 comments on commit 2f10a5f

Please sign in to comment.