diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/du/dumbpipe/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/du/dumbpipe/package.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/du/dumbpipe/package.nix b/nixpkgs/pkgs/by-name/du/dumbpipe/package.nix new file mode 100644 index 000000000000..6f3074266947 --- /dev/null +++ b/nixpkgs/pkgs/by-name/du/dumbpipe/package.nix @@ -0,0 +1,34 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "dumbpipe"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "n0-computer"; + repo = pname; + rev = "v${version}"; + hash = "sha256-pvAB3kvnyNZ6N7bC8NIaSNUxcn9AfpEozYcczA+5zmc="; + }; + + cargoHash = "sha256-aHuRG1mLb18bra/iTddU3B4XjS5shheBqW1Hs+QMcJs="; + + buildInputs = lib.optionals stdenv.isDarwin ( + 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"; + }; +} |