9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
28 lines
783 B
Nix
28 lines
783 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, CoreServices, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "synapse-bt";
|
|
version = "1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Luminarys";
|
|
repo = "synapse";
|
|
rev = version;
|
|
sha256 = "01npv3zwia5d534zdwisd9xfng507adv4qkljf8z0zm0khqqn71a";
|
|
};
|
|
|
|
cargoSha256 = "0lhhdzq4sadnp2pnbq309d1mb7ggbf24k5ivlchrjhllbim1wmdz";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
|
|
|
cargoBuildFlags = [ "--all" ];
|
|
|
|
meta = with lib; {
|
|
description = "Flexible and fast BitTorrent daemon";
|
|
homepage = "https://synapse-bt.org/";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ dywedir ];
|
|
};
|
|
}
|