2024-05-15 15:35:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "dumbpipe";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "0.17.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "n0-computer";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-7OHghotSibkGRrcsh7CqZBp94FY6RKZvcn8QW+dTH1I=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
cargoHash = "sha256-rlhfGw/b0HnV1Xl9VWIqEuyM9pq29O6bpaawk2hnG+o=";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
|
2024-05-15 15:35:15 +00:00
|
|
|
with darwin.apple_sdk.frameworks; [
|
|
|
|
SystemConfiguration
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Connect A to B - Send Data";
|
|
|
|
homepage = "https://www.dumbpipe.dev/";
|
|
|
|
license = with licenses; [ asl20 mit ];
|
|
|
|
maintainers = with maintainers; [ cameronfyfe ];
|
|
|
|
mainProgram = "dumbpipe";
|
|
|
|
};
|
|
|
|
}
|