From a711dab545e8b964914ac01ed06971a5a37ae22b Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 30 Apr 2024 04:07:12 -0400 Subject: init --- test/Cargo.toml | 9 +++++++++ test/biome.js | 2 ++ test/flake.lock | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/flake.nix | 21 ++++++++++++++++++++ test/src/main.rs | 4 ++++ 5 files changed, 96 insertions(+) create mode 100644 test/Cargo.toml create mode 100644 test/biome.js create mode 100644 test/flake.lock create mode 100644 test/flake.nix create mode 100644 test/src/main.rs (limited to 'test') diff --git a/test/Cargo.toml b/test/Cargo.toml new file mode 100644 index 0000000..eef754c --- /dev/null +++ b/test/Cargo.toml @@ -0,0 +1,9 @@ +# this is for testing the `rustfmt` check +[package] +name = "flake-checks" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/test/biome.js b/test/biome.js new file mode 100644 index 0000000..07ef948 --- /dev/null +++ b/test/biome.js @@ -0,0 +1,2 @@ +// this is a file for biome to format +console.log("hello world!"); diff --git a/test/flake.lock b/test/flake.lock new file mode 100644 index 0000000..4361b8a --- /dev/null +++ b/test/flake.lock @@ -0,0 +1,60 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1714314149, + "narHash": "sha256-yNAevSKF4krRWacmLUsLK7D7PlfuY3zF0lYnGYNi9vQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "cf8cc1201be8bc71b7cbbbdaf349b22f4f99c7ae", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixpkgs-unstable", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/test/flake.nix b/test/flake.nix new file mode 100644 index 0000000..fb4547c --- /dev/null +++ b/test/flake.nix @@ -0,0 +1,21 @@ +{ + inputs = { + nixpkgs.url = "nixpkgs/nixpkgs-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { + nixpkgs, + flake-utils, + ... + }: + flake-utils.lib.eachDefaultSystem (system: let + pkgs = nixpkgs.legacyPackages.${system}; + flake-checks' = (import ../.).mkChecks { + inherit pkgs; + root = ../.; + }; + in { + checks = flake-checks'; + }); +} diff --git a/test/src/main.rs b/test/src/main.rs new file mode 100644 index 0000000..1264903 --- /dev/null +++ b/test/src/main.rs @@ -0,0 +1,4 @@ +// this is for testing the `rustfmt` check +fn main() { + println!("hello world"); +} -- cgit v1.2.3