From d3996bb9e27e5218509b1f2145e5e459af544ac0 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 11 Apr 2024 11:05:59 -0500 Subject: [PATCH] Monorepo doesn't play nice with git-hooks.nix --- projects/chatbot/.envrc | 1 - projects/chatbot/.gitignore | 2 -- projects/chatbot/flake.lock | 27 --------------------------- projects/chatbot/flake.nix | 35 ----------------------------------- 4 files changed, 65 deletions(-) delete mode 100644 projects/chatbot/.envrc delete mode 100644 projects/chatbot/.gitignore delete mode 100644 projects/chatbot/flake.lock delete mode 100644 projects/chatbot/flake.nix diff --git a/projects/chatbot/.envrc b/projects/chatbot/.envrc deleted file mode 100644 index 3550a30..0000000 --- a/projects/chatbot/.envrc +++ /dev/null @@ -1 +0,0 @@ -use flake diff --git a/projects/chatbot/.gitignore b/projects/chatbot/.gitignore deleted file mode 100644 index 6abfe1b..0000000 --- a/projects/chatbot/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/target -/.direnv diff --git a/projects/chatbot/flake.lock b/projects/chatbot/flake.lock deleted file mode 100644 index f01c2b9..0000000 --- a/projects/chatbot/flake.lock +++ /dev/null @@ -1,27 +0,0 @@ -{ - "nodes": { - "nixpkgs": { - "locked": { - "lastModified": 1712608508, - "narHash": "sha256-vMZ5603yU0wxgyQeHJryOI+O61yrX2AHwY6LOFyV1gM=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "4cba8b53da471aea2ab2b0c1f30a81e7c451f4b6", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "nixpkgs": "nixpkgs" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/projects/chatbot/flake.nix b/projects/chatbot/flake.nix deleted file mode 100644 index be6b512..0000000 --- a/projects/chatbot/flake.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - outputs = { - self, - nixpkgs, - }: let - inherit (self) outputs; - supportedSystems = [ - "x86_64-linux" - "aarch64-linux" - - "x86_64-darwin" - "aarch64-darwin" - ]; - forEachSupportedSystem = nixpkgs.lib.genAttrs supportedSystems; - in { - devShells = forEachSupportedSystem (system: let - pkgs = import nixpkgs {inherit system;}; - in { - rust-dev = pkgs.mkShell { - buildInputs = with pkgs; [ - cargo - rustc - rustfmt - rustPackages.clippy - rust-analyzer - lldb - pkg-config - ]; - }; - - default = outputs.devShells.${system}.rust-dev; - }); - }; -}