From bbf14db0f46f34c51e7eaa8597bd2bdadc6765e1 Mon Sep 17 00:00:00 2001 From: Ivan Bushchik Date: Thu, 21 Dec 2023 07:07:59 +0300 Subject: [PATCH] Bump urouter to 0.4.0 Signed-off-by: Ivan Bushchik --- machines/rubusidaeus/default.nix | 13 ++++++------- pkgs/urouter.nix | 6 +++--- roles/server/urouter.nix | 5 ++--- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/machines/rubusidaeus/default.nix b/machines/rubusidaeus/default.nix index 47f0523..4dd0660 100644 --- a/machines/rubusidaeus/default.nix +++ b/machines/rubusidaeus/default.nix @@ -36,29 +36,28 @@ in { alias = [ { "uri" = "/"; - "alias" = "https://ivabus.dev"; - "is_url" = true; + "alias" = { url = "https://ivabus.dev"; }; } { "uri" = "/"; - "alias" = "dotfiles"; + "alias" = { file = "dotfiles"; }; "curl_only" = true; } { "uri" = "d"; - "alias" = "dotfiles"; + "alias" = { file = "dotfiles"; }; } { "uri" = "e"; - "alias" = "env"; + "alias" = { file = "env"; }; } { "uri" = "nix"; - "alias" = "nix"; + "alias" = { file = "nix"; }; } { "uri" = "truth"; - "alias" = "truth.py"; + "alias" = { file = "truth.py"; }; } ]; }; diff --git a/pkgs/urouter.nix b/pkgs/urouter.nix index fa9cc35..2734cac 100644 --- a/pkgs/urouter.nix +++ b/pkgs/urouter.nix @@ -3,14 +3,14 @@ rustPlatform.buildRustPackage rec { pname = "urouter"; - version = "0.3.5"; + version = "0.4.0"; src = fetchCrate { inherit pname version; - sha256 = "sha256-kLCJXLtcbF3IeTylbd7EpDx3cjt0sRz1P90iJYlLi7Y="; + sha256 = "sha256-KhluExV7RP6+L5ZC9inu0tFsM4Gk3yuaM6EZud0O3Qs="; }; - cargoSha256 = "sha256-zePizgFOoSDILz8PL74RQ+iPFXJY+l41M4EwLwzJRPU="; + cargoSha256 = "sha256-dSMDsh5gH9jbwfnrL+WHwFPr+rk/z/A5drsX4BdXv18="; nativeBuildInputs = [ pkgs.pkg-config ]; } diff --git a/roles/server/urouter.nix b/roles/server/urouter.nix index 6c4fa73..d6b612b 100644 --- a/roles/server/urouter.nix +++ b/roles/server/urouter.nix @@ -13,12 +13,11 @@ in { alias = [ { uri = "/"; - alias = "https://someurl"; - is_url = true; + alias = { url = "https://someurl"; }; } { uri = "/"; - alias = "some_file"; + alias = { file = "some_file"; }; curl_only = true; } ];