-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
160 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
description = "Library of Orzklv"; | ||
|
||
inputs = { | ||
# Too old to work with most libraries | ||
# nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; | ||
|
||
# Perfect! | ||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; | ||
|
||
# The flake-utils library | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = | ||
{ nixpkgs | ||
, flake-utils | ||
, ... | ||
} @ inputs: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
in | ||
{ | ||
# Nix script formatter | ||
formatter = pkgs.nixpkgs-fmt; | ||
|
||
# Development environment | ||
devShells.default = import ./shell.nix { inherit pkgs; }; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
zed is already running | ||
2024-10-14 20:14:27.398 zed[7057:28144525] +[IMKClient subclass]: chose IMKClient_Modern | ||
2024-10-14 20:14:27.398 zed[7057:28144525] +[IMKInputSession subclass]: chose IMKInputSession_Modern |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ pkgs ? import <nixpkgs> {} }: | ||
let | ||
getLibFolder = pkg: "${pkg}/lib"; | ||
getFramwork = pkg: "${pkg}/Library/Frameworks"; | ||
darwinOptions = if pkgs.stdenv.isDarwin then '' | ||
-F${(getFramwork pkgs.darwin.apple_sdk.frameworks.Security)} | ||
-F${(getFramwork pkgs.darwin.apple_sdk.frameworks.CoreFoundation)} | ||
-F${(getFramwork pkgs.darwin.apple_sdk.frameworks.CoreServices)} | ||
-F${(getFramwork pkgs.darwin.apple_sdk.frameworks.SystemConfiguration)} | ||
'' else ""; | ||
in | ||
pkgs.stdenv.mkDerivation { | ||
name = "orzklv"; | ||
|
||
nativeBuildInputs = with pkgs; [ | ||
# LLVM & GCC | ||
gcc | ||
cmake | ||
gnumake | ||
pkg-config | ||
llvmPackages.llvm | ||
llvmPackages.clang | ||
|
||
# Hail the Nix | ||
nixd | ||
nixpkgs-fmt | ||
|
||
# Launch scripts | ||
just | ||
|
||
# Rust | ||
rustc | ||
cargo | ||
clippy | ||
cargo-watch | ||
rust-analyzer | ||
]; | ||
|
||
buildInputs = with pkgs; [ | ||
openssl | ||
darwin.apple_sdk.frameworks.Security | ||
darwin.apple_sdk.frameworks.CoreServices | ||
darwin.apple_sdk.frameworks.CoreFoundation | ||
darwin.apple_sdk.frameworks.SystemConfiguration | ||
]; | ||
|
||
# Set Environment Variables | ||
RUST_BACKTRACE = 1; | ||
NIX_LDFLAGS = "-L${(getLibFolder pkgs.libiconv)} ${darwinOptions}"; | ||
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; | ||
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ | ||
(getLibFolder pkgs.gcc) | ||
(getLibFolder pkgs.libiconv) | ||
(getLibFolder pkgs.llvmPackages.llvm) | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pub mod i18n; | ||
pub mod inter; | ||
pub mod language; | ||
|
||
use thiserror::Error; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters