Skip to content

Commit

Permalink
chore: update github username
Browse files Browse the repository at this point in the history
  • Loading branch information
boralg committed Jan 13, 2025
1 parent ab2daaf commit a67efcf
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 25 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
4 changes: 2 additions & 2 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 25 additions & 20 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
[
{
Expand All @@ -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
];
};
}
{
Expand Down Expand Up @@ -98,4 +103,4 @@
devShells = devShellsForEachPlatform ./.;
}
);
}
}
6 changes: 5 additions & 1 deletion sursface/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit a67efcf

Please sign in to comment.