diff --git a/pkgs/servers/routinator/Cargo.toml.patch b/pkgs/servers/routinator/Cargo.toml.patch new file mode 100644 index 00000000000..8bda0299bc8 --- /dev/null +++ b/pkgs/servers/routinator/Cargo.toml.patch @@ -0,0 +1,13 @@ +diff --git a/Cargo.toml b/Cargo.toml +index 7f07b3b..7d7af0a 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -48,7 +48,7 @@ syslog = "5.0.0" + rustc_version = "0.4.0" + + [features] +-default = [ "socks", "ui"] ++default = [ "socks" ] + extra-debug = ["rpki/extra-debug"] + socks = [ "reqwest/socks" ] + rta = [] diff --git a/pkgs/servers/routinator/default.nix b/pkgs/servers/routinator/default.nix index 1ee31232592..4f85650b87f 100644 --- a/pkgs/servers/routinator/default.nix +++ b/pkgs/servers/routinator/default.nix @@ -1,18 +1,27 @@ -{ stdenv, lib, fetchFromGitHub, rustPlatform, Security }: +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, Security +}: rustPlatform.buildRustPackage rec { pname = "routinator"; - version = "0.10.0"; + version = "0.10.1"; src = fetchFromGitHub { owner = "NLnetLabs"; repo = pname; rev = "v${version}"; - sha256 = "171zmqqkgdpbspn70sgsypnyw7m6q2x8izwxrzbyi5xslsgd24i4"; + sha256 = "sha256-ThgTGtTZ0LGm9nHJoy0KhnBFWNvKRjk7hoNTVVTeL/Y="; }; + cargoPatches = [ + ./Cargo.toml.patch + ]; + cargoSha256 = "sha256-mcx+qUtTUxeYP0PeJp1eOQwsdS6PPUx/m7TfAyqFiIM="; + buildInputs = lib.optionals stdenv.isDarwin [ Security ]; - cargoSha256 = "0r1m1zv3mkmmaalln3ny6m33dyjqzdyfbmkcav05kz12xjdd94fs"; meta = with lib; { description = "An RPKI Validator written in Rust";