nixpkgs-immich/pkgs/applications/networking/p2p/dht/default.nix
2024-09-17 10:23:40 -06:00

25 lines
633 B
Nix

{ stdenv, lib, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "dht";
version = "0.27";
src = fetchFromGitHub {
# Use transmission fork from post-0.27-transmission branch
owner = "transmission";
repo = pname;
rev = "015585510e402a057ec17142711ba2b568b5fd62";
sha256 = "m4utcxqE3Mn5L4IQ9UfuJXj2KkXXnqKBGqh7kHHGMJQ=";
};
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "BitTorrent DHT library";
homepage = "https://github.com/transmission/dht";
license = licenses.mit;
maintainers = with maintainers; [ emilytrau ];
platforms = platforms.unix;
};
}