From 5a702770c0fd6177a5c64ab2a827b3f8d91e62c3 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Thu, 20 Jun 2024 00:38:29 +0530 Subject: [PATCH] feat: Update and fix flake.nix --- flake.lock | 52 +++++++++------------------------------------------- flake.nix | 2 -- src/main.rs | 2 +- 3 files changed, 10 insertions(+), 46 deletions(-) diff --git a/flake.lock b/flake.lock index 73edb65..9a6fa38 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1718474113, - "narHash": "sha256-UKrfy/46YF2TRnxTtKCYzqf2f5ZPRRWwKCCJb7O5X8U=", + "lastModified": 1718730147, + "narHash": "sha256-QmD6B6FYpuoCqu6ZuPJH896ItNquDkn0ulQlOn4ykN8=", "owner": "ipetkov", "repo": "crane", - "rev": "0095fd8ea00ae0a9e6014f39c375e40c2fbd3386", + "rev": "32c21c29b034d0a93fdb2379d6fabc40fc3d0e6c", "type": "github" }, "original": { @@ -38,31 +38,13 @@ "type": "github" } }, - "flake-utils_2": { - "inputs": { - "systems": "systems_2" - }, - "locked": { - "lastModified": 1705309234, - "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, "nixpkgs": { "locked": { - "lastModified": 1718616244, - "narHash": "sha256-FU5eDMBpJsCz2DI1xXtNJ8VS3ywG//pJzJxkHq7AvFo=", + "lastModified": 1718823610, + "narHash": "sha256-3abXGB+m4OMicaeB2IgGhnOvJTKYkcJ2o5wN9atjtt8=", "owner": "nixos", "repo": "nixpkgs", - "rev": "d1b5c45553e33bd41ce99bfe8d2560d20352c8a8", + "rev": "34105c6b2f2c7e0b0914ded066dbbee043cff57c", "type": "github" }, "original": { @@ -81,17 +63,16 @@ }, "rust-overlay": { "inputs": { - "flake-utils": "flake-utils_2", "nixpkgs": [ "nixpkgs" ] }, "locked": { - "lastModified": 1718590793, - "narHash": "sha256-92OO8XrQTvdvDtRi0BAkjTaoZXW5ORuvqdk677wW7ko=", + "lastModified": 1718763539, + "narHash": "sha256-JHqQyO5XppLpMSKBaYlxbmPHMc4DpwuavKIch9W+hv4=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "5265b8a1e1d2e370e8b45b557326b691aec7d163", + "rev": "69fcfaebbe564d162a85cadeaadd4dec646be4a2", "type": "github" }, "original": { @@ -114,21 +95,6 @@ "repo": "default", "type": "github" } - }, - "systems_2": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } } }, "root": "root", diff --git a/flake.nix b/flake.nix index b23ca99..982827c 100644 --- a/flake.nix +++ b/flake.nix @@ -152,8 +152,6 @@ devShells.default = (craneLib.overrideToolchain stableToolchainWithRustAnalyzer).devShell (commonArgs // { - buildInputs = []; - nativeBuildInputs = []; packages = with pkgs; [ cargo-nextest cargo-criterion diff --git a/src/main.rs b/src/main.rs index bea7d84..2dca961 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,7 +29,7 @@ fn window_conf() -> Conf { async fn main() { let mut cursor = Cursor::default(); cursor.handle_mouse(); - let mut world = world::World::new().every(Duration::from_millis(5)); + let mut world = world::World::new(); loop { cursor.draw();