mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
ratman: init at 0.3.1 (#155619)
This commit is contained in:
parent
39900ee62d
commit
b69f2210e2
41
pkgs/tools/networking/ratman/default.nix
Normal file
41
pkgs/tools/networking/ratman/default.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{ lib
|
||||
, fetchurl
|
||||
, installShellFiles
|
||||
, libsodium
|
||||
, pkg-config
|
||||
, protobuf
|
||||
, rustPlatform
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "ratman";
|
||||
version = "0.3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://git.irde.st/we/irdest/-/archive/${pname}-${version}/irdest-${pname}-${version}.tar.gz";
|
||||
sha256 = "0x1wvhsmf7m55j9hmirkz75qivsg33xab1sil6nbv8fby428fpq6";
|
||||
};
|
||||
|
||||
cargoSha256 = "1dkfyy1z34qaavyd3f20hrrrb3kjsdfkyzd535xlds9wivgchmd0";
|
||||
|
||||
nativeBuildInputs = [ protobuf pkg-config installShellFiles ];
|
||||
|
||||
cargoBuildFlags = [ "--all-features" "-p" "ratman" ];
|
||||
cargoTestFlags = cargoBuildFlags;
|
||||
|
||||
buildInputs = [ libsodium ];
|
||||
|
||||
postInstall = ''
|
||||
installManPage docs/man/ratmand.1
|
||||
'';
|
||||
|
||||
SODIUM_USE_PKG_CONFIG = 1;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A modular decentralised peer-to-peer packet router and associated tools";
|
||||
homepage = "https://git.irde.st/we/irdest";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.agpl3;
|
||||
maintainers = with maintainers; [ spacekookie yuka ];
|
||||
};
|
||||
}
|
@ -9116,6 +9116,8 @@ with pkgs;
|
||||
|
||||
rarian = callPackage ../development/libraries/rarian { };
|
||||
|
||||
ratman = callPackage ../tools/networking/ratman { };
|
||||
|
||||
ratools = callPackage ../tools/networking/ratools { };
|
||||
|
||||
ratt = callPackage ../applications/misc/ratt { };
|
||||
|
Loading…
Reference in New Issue
Block a user