diff --git a/.envrc b/.envrc deleted file mode 100644 index 3550a30..0000000 --- a/.envrc +++ /dev/null @@ -1 +0,0 @@ -use flake diff --git a/flake.lock b/flake.lock deleted file mode 100644 index ed8e57a..0000000 --- a/flake.lock +++ /dev/null @@ -1,48 +0,0 @@ -{ - "nodes": { - "nixpkgs": { - "locked": { - "lastModified": 1759036355, - "narHash": "sha256-0m27AKv6ka+q270dw48KflE0LwQYrO7Fm4/2//KCVWg=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "e9f00bd893984bc8ce46c895c3bf7cac95331127", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "nixpkgs": "nixpkgs", - "treefmt": "treefmt" - } - }, - "treefmt": { - "inputs": { - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1758728421, - "narHash": "sha256-ySNJ008muQAds2JemiyrWYbwbG+V7S5wg3ZVKGHSFu8=", - "owner": "numtide", - "repo": "treefmt-nix", - "rev": "5eda4ee8121f97b218f7cc73f5172098d458f1d1", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "treefmt-nix", - "type": "github" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index b5983bc..0000000 --- a/flake.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ - inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - - treefmt.url = "github:numtide/treefmt-nix"; - treefmt.inputs.nixpkgs.follows = "nixpkgs"; - }; - - outputs = { - self, - nixpkgs, - treefmt, - }: let - pkgs = nixpkgs.legacyPackages.x86_64-linux; - - treefmtEval = treefmt.lib.evalModule pkgs { - projectRootFile = "flake.nix"; - programs = { - alejandra.enable = true; - prettier.enable = true; - rustfmt = { - enable = true; - edition = (nixpkgs.lib.importTOML ./Cargo.toml).package.edition; - }; - taplo.enable = true; - }; - }; - in { - devShells.x86_64-linux.default = pkgs.mkShell { - nativeBuildInputs = [pkgs.pkg-config]; - buildInputs = [pkgs.libusb1]; - }; - - formatter.x86_64-linux = treefmtEval.config.build.wrapper; - - checks.x86_64-linux = { - formatting = treefmtEval.config.build.check self; - }; - }; -}