feat: Update and fix flake.nix

This commit is contained in:
uttarayan21
2024-06-20 00:38:29 +05:30
parent 62e1a24e55
commit 5a702770c0
3 changed files with 10 additions and 46 deletions
Generated
+9 -43
View File
@@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1718474113, "lastModified": 1718730147,
"narHash": "sha256-UKrfy/46YF2TRnxTtKCYzqf2f5ZPRRWwKCCJb7O5X8U=", "narHash": "sha256-QmD6B6FYpuoCqu6ZuPJH896ItNquDkn0ulQlOn4ykN8=",
"owner": "ipetkov", "owner": "ipetkov",
"repo": "crane", "repo": "crane",
"rev": "0095fd8ea00ae0a9e6014f39c375e40c2fbd3386", "rev": "32c21c29b034d0a93fdb2379d6fabc40fc3d0e6c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -38,31 +38,13 @@
"type": "github" "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": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1718616244, "lastModified": 1718823610,
"narHash": "sha256-FU5eDMBpJsCz2DI1xXtNJ8VS3ywG//pJzJxkHq7AvFo=", "narHash": "sha256-3abXGB+m4OMicaeB2IgGhnOvJTKYkcJ2o5wN9atjtt8=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d1b5c45553e33bd41ce99bfe8d2560d20352c8a8", "rev": "34105c6b2f2c7e0b0914ded066dbbee043cff57c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -81,17 +63,16 @@
}, },
"rust-overlay": { "rust-overlay": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1718590793, "lastModified": 1718763539,
"narHash": "sha256-92OO8XrQTvdvDtRi0BAkjTaoZXW5ORuvqdk677wW7ko=", "narHash": "sha256-JHqQyO5XppLpMSKBaYlxbmPHMc4DpwuavKIch9W+hv4=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "5265b8a1e1d2e370e8b45b557326b691aec7d163", "rev": "69fcfaebbe564d162a85cadeaadd4dec646be4a2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -114,21 +95,6 @@
"repo": "default", "repo": "default",
"type": "github" "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", "root": "root",
-2
View File
@@ -152,8 +152,6 @@
devShells.default = (craneLib.overrideToolchain stableToolchainWithRustAnalyzer).devShell (commonArgs devShells.default = (craneLib.overrideToolchain stableToolchainWithRustAnalyzer).devShell (commonArgs
// { // {
buildInputs = [];
nativeBuildInputs = [];
packages = with pkgs; [ packages = with pkgs; [
cargo-nextest cargo-nextest
cargo-criterion cargo-criterion
+1 -1
View File
@@ -29,7 +29,7 @@ fn window_conf() -> Conf {
async fn main() { async fn main() {
let mut cursor = Cursor::default(); let mut cursor = Cursor::default();
cursor.handle_mouse(); cursor.handle_mouse();
let mut world = world::World::new().every(Duration::from_millis(5)); let mut world = world::World::new();
loop { loop {
cursor.draw(); cursor.draw();