From 41a97a9df862a4120b3533c51c76a9af506f1028 Mon Sep 17 00:00:00 2001 From: Lyssieth Date: Sun, 24 Nov 2024 00:43:29 +0200 Subject: [PATCH] Initial Commit --- .envrc | 2 ++ .gitignore | 4 +++ .vscode/settings.json | 13 +++++++++ README.md | 4 +++ flake.lock | 61 +++++++++++++++++++++++++++++++++++++++++++ flake.nix | 25 ++++++++++++++++++ 6 files changed, 109 insertions(+) create mode 100644 .envrc create mode 100644 .gitignore create mode 100644 .vscode/settings.json create mode 100644 README.md create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..9b35cbd --- /dev/null +++ b/.envrc @@ -0,0 +1,2 @@ +nix_direnv_manual_reload +use flake diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fbfa847 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/.direnv + +/zig-out +/.zig-cache diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b99c7a3 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,13 @@ +{ + "zig.path": "zig", + "zig.zls.path": "zls", + "zig.initialSetupDone": true, + "zig.formattingProvider": "zls", + + "biome.enabled": false, + + "[zig]": { + "prettier.tabWidth": 4, + "editor.tabSize": 4 + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..3f82d63 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Lys' Zig Library + +A "fancy" library for Zig that does a bunch of random cool things. + diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..17b4200 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1732014248, + "narHash": "sha256-y/MEyuJ5oBWrWAic/14LaIr/u5E0wRVzyYsouYY3W6w=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "23e89b7da85c3640bbc2173fe04f4bd114342367", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "utils": "utils" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..038fb36 --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + utils.url = "github:numtide/flake-utils"; + }; + + outputs = { + nixpkgs, + utils, + ... + }: + utils.lib.eachDefaultSystem (system: let + pkgs = import nixpkgs { + inherit system; + }; + in { + devShells.default = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + just + zig + zls + ]; + }; + }); +}