nixpkgs/pkgs/servers/dns/doh-proxy-rust/default.nix
Daniël de Kok 85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00

27 lines
819 B
Nix

{ lib, stdenv, rustPlatform, fetchFromGitHub, Security, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "doh-proxy-rust";
version = "0.3.8";
src = fetchFromGitHub {
owner = "jedisct1";
repo = "doh-server";
rev = version;
sha256 = "0jksdrji06ykk5cj6i8ydcjhagjwb2xz5bjs6qsw044p8a2hsq53";
};
cargoSha256 = "0i7rga5w4jh7zia4v2zkbmbc683p69z5z05ksl40jcmzvp29p3fj";
cargoPatches = [ ./cargo-lock.patch ];
buildInputs = lib.optionals stdenv.isDarwin [ Security libiconv ];
doCheck = false; # no test suite, skip useless compile step
meta = with lib; {
homepage = "https://github.com/jedisct1/doh-server";
description = "Fast, mature, secure DoH server proxy written in Rust";
license = with licenses; [ mit ];
maintainers = with maintainers; [ stephank ];
};
}