diff options
Diffstat (limited to 'pkgs/tools/misc/rtz/default.nix')
-rw-r--r-- | pkgs/tools/misc/rtz/default.nix | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/pkgs/tools/misc/rtz/default.nix b/pkgs/tools/misc/rtz/default.nix index 3d7670991a5b..a5f55342a13a 100644 --- a/pkgs/tools/misc/rtz/default.nix +++ b/pkgs/tools/misc/rtz/default.nix @@ -12,13 +12,13 @@ rustPlatform.buildRustPackage rec { pname = "rtz"; - version = "0.7.0"; + version = "0.7.1"; src = fetchFromGitHub { owner = "twitchax"; repo = "rtz"; rev = "v${version}"; - hash = "sha256-Wfb3FEZHjWYUtRI4Qn3QNunIXuzW1AIEZkIvtVrjBPs="; + hash = "sha256-V7N9NFIc/WWxLaahkjdS47Qj8sc3HRdKSkrBqi1ngA8="; }; cargoLock = { @@ -28,11 +28,6 @@ rustPlatform.buildRustPackage rec { }; }; - swagger-ui = fetchurl { - url = "https://github.com/juhaku/utoipa/raw/master/utoipa-swagger-ui-vendored/res/v5.17.12.zip"; - hash = "sha256-HK4z/JI+1yq8BTBJveYXv9bpN/sXru7bn/8g5mf2B/I="; - }; - nativeBuildInputs = [ pkg-config ]; @@ -41,24 +36,13 @@ rustPlatform.buildRustPackage rec { bzip2 openssl zstd - ] ++ lib.optionals stdenv.isDarwin [ + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security darwin.apple_sdk.frameworks.SystemConfiguration ]; buildFeatures = [ "web" ]; - # ${swagger-ui} is read-only and the copy made by the build script - # is as well. Remove it so that checks can copy it again. - preCheck = '' - find target -name $(basename ${swagger-ui}) -delete - ''; - - env = { - # use local data file instead of requiring network access - SWAGGER_UI_DOWNLOAD_URL = "file://${swagger-ui}"; - }; - meta = with lib; { description = "Tool to easily work with timezone lookups via a binary, a library, or a server"; homepage = "https://github.com/twitchax/rtz"; |