diff --git a/LICENSE b/LICENSE index e2550cd..e357d70 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright 2024 thinnerthinker +Copyright 2024 boralg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/README.md b/README.md index fbf5ef1..ce67248 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ To compile Sursface, ensure you have the following tools installed: Rust, Cargo, Clone the repository: ```sh -git clone https://github.com/thinnerthinker/sursface.git +git clone https://github.com/boralg/sursface.git cd sursface ``` diff --git a/flake.lock b/flake.lock index 4395a5f..4f380c4 100755 --- a/flake.lock +++ b/flake.lock @@ -127,13 +127,13 @@ "locked": { "lastModified": 1722641557, "narHash": "sha256-Ii6XjxZsWWGzWUHgl4sAniHQIBxLrRR0gsz21fv5QV0=", - "owner": "thinnerthinker", + "owner": "boralg", "repo": "tomers", "rev": "24d13a623903790d87ad5cedfac3bddef2da7091", "type": "github" }, "original": { - "owner": "thinnerthinker", + "owner": "boralg", "repo": "tomers", "type": "github" } diff --git a/flake.nix b/flake.nix index d5d1d5c..d7962f2 100755 --- a/flake.nix +++ b/flake.nix @@ -5,22 +5,25 @@ nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; tomers = { - url = "github:thinnerthinker/tomers"; + url = "github:boralg/tomers"; inputs.nixpkgs.follows = "nixpkgs"; }; }; - outputs = { nixpkgs, tomers, ... }: - tomers.inputs.flake-utils.lib.eachDefaultSystem (system: + outputs = + { nixpkgs, tomers, ... }: + tomers.inputs.flake-utils.lib.eachDefaultSystem ( + system: let pkgs = nixpkgs.legacyPackages.${system}; targetPlatforms = let buildFilePatterns = [ ".*/assets/.*" ]; - toolchainPackages = fenixPkgs: crossFenixPkgs: with fenixPkgs; [ - latest.rustfmt - stable.rust-src - ]; + toolchainPackages = + fenixPkgs: crossFenixPkgs: with fenixPkgs; [ + latest.rustfmt + stable.rust-src + ]; in [ { @@ -39,18 +42,20 @@ inherit buildFilePatterns; inherit toolchainPackages; env = { - LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [ - libxkbcommon - wayland - xorg.libX11 - xorg.libXrandr - xorg.libXrender - xorg.libXcursor - xorg.libxcb - xorg.libXi - libGL - vulkan-loader - ]; + LD_LIBRARY_PATH = + with pkgs; + lib.makeLibraryPath [ + libxkbcommon + wayland + xorg.libX11 + xorg.libXrandr + xorg.libXrender + xorg.libXcursor + xorg.libxcb + xorg.libXi + libGL + vulkan-loader + ]; }; } { @@ -98,4 +103,4 @@ devShells = devShellsForEachPlatform ./.; } ); -} +} diff --git a/sursface/src/time.rs b/sursface/src/time.rs index af8a268..ce10625 100644 --- a/sursface/src/time.rs +++ b/sursface/src/time.rs @@ -5,7 +5,11 @@ lazy_static! { } pub fn now_secs() -> f32 { + now_secs_f64() as f32 +} + +pub fn now_secs_f64() -> f64 { web_time::Instant::now() .duration_since(*START_TIME) - .as_secs_f64() as f32 + .as_secs_f64() }