From 59d8273498815bf8d5c70f13e1e8bfc619467bc4 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sun, 29 Sep 2024 21:16:20 -0400 Subject: [PATCH] added deno overlay, modified flake name --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 11 ++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 02a4912..1133504 100644 --- a/flake.lock +++ b/flake.lock @@ -14,6 +14,26 @@ "url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%2A.tar.gz" } }, + "nix-deno": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1713992202, + "narHash": "sha256-+sxjCORBeqOX4lgVGeoCiMRidLh8qpi21+NiOfiPr4k=", + "owner": "nekowinston", + "repo": "nix-deno", + "rev": "bb43316eb233e0cea0719a68b92cc797e4829169", + "type": "github" + }, + "original": { + "owner": "nekowinston", + "repo": "nix-deno", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1725001927, @@ -31,6 +51,7 @@ "root": { "inputs": { "flake-schemas": "flake-schemas", + "nix-deno": "nix-deno", "nixpkgs": "nixpkgs", "rust-overlay": "rust-overlay" } diff --git a/flake.nix b/flake.nix index ececbd6..3154794 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,7 @@ # This flake was initially generated by fh, the CLI for FlakeHub (version 0.1.10) { # A helpful description of your flake - description = "A Gitea command line application"; + description = "My personal website v2"; # Flake inputs inputs = { @@ -13,6 +13,11 @@ url = "github:oxalica/rust-overlay"; inputs.nixpkgs.follows = "nixpkgs"; }; + + nix-deno = { + url = "github:nekowinston/nix-deno"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; # Flake outputs that other flakes can use @@ -21,9 +26,11 @@ flake-schemas, nixpkgs, rust-overlay, + nix-deno, }: let # Nixpkgs overlays overlays = [ + nix-deno.overlays.default rust-overlay.overlays.default (final: prev: { rustToolchain = final.rust-bin.stable.latest.default.override {extensions = ["rust-src"];}; @@ -54,6 +61,7 @@ wget nixpkgs-fmt openssl + patchelf deno sqlx-cli ]; @@ -62,6 +70,7 @@ env = { RUST_BACKTRACE = "1"; RUST_SRC_PATH = "${pkgs.rustToolchain}/lib/rustlib/src/rust/library"; + # PATH = "$PATH:$HOME/.local/share/nvim/mason/bin/deno"; }; }; });