summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.envrc1
-rw-r--r--.gitignore2
-rw-r--r--CHANGELOG.md6
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--flake.lock61
-rw-r--r--flake.nix44
7 files changed, 116 insertions, 2 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/.envrc
@@ -0,0 +1 @@
+use flake
diff --git a/.gitignore b/.gitignore
index a53d1a3..352d360 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
/target
/NOTES.md
+/result
+/.direnv
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 88f8111..d284cab 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,12 @@ The format is based on [Keep A Changelog][] and this project adheres to
## Unreleased
+### Added
+
+- Add experimental Nix flake
+
+## [0.1.5] - 2025-04-10
+
### Fixed
- Update crossbeam-channel. Fixes [RUSTSEC-2025-0024](https://rustsec.org/advisories/RUSTSEC-2025-0024).
diff --git a/Cargo.lock b/Cargo.lock
index fa1e11c..196caab 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -80,7 +80,7 @@ dependencies = [
[[package]]
name = "parseq"
-version = "0.1.4"
+version = "0.1.5"
dependencies = [
"crossbeam-channel",
"ntest",
diff --git a/Cargo.toml b/Cargo.toml
index e6f9d8b..dbc4bff 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "parseq"
-version = "0.1.4"
+version = "0.1.5"
authors = ["Stefan Kreutz <mail@skreutz.com>"]
edition = "2021"
description = "Parallel sequential iterator"
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..8ea085a
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,61 @@
+{
+ "nodes": {
+ "flake-parts": {
+ "inputs": {
+ "nixpkgs-lib": "nixpkgs-lib"
+ },
+ "locked": {
+ "lastModified": 1763759067,
+ "narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=",
+ "owner": "hercules-ci",
+ "repo": "flake-parts",
+ "rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0",
+ "type": "github"
+ },
+ "original": {
+ "owner": "hercules-ci",
+ "repo": "flake-parts",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1756159630,
+ "narHash": "sha256-ohMvsjtSVdT/bruXf5ClBh8ZYXRmD4krmjKrXhEvwMg=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "84c256e42600cb0fdf25763b48d28df2f25a0c8b",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixpkgs-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs-lib": {
+ "locked": {
+ "lastModified": 1761765539,
+ "narHash": "sha256-b0yj6kfvO8ApcSE+QmA6mUfu8IYG6/uU28OFn4PaC8M=",
+ "owner": "nix-community",
+ "repo": "nixpkgs.lib",
+ "rev": "719359f4562934ae99f5443f20aa06c2ffff91fc",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "nixpkgs.lib",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-parts": "flake-parts",
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..bdd81ea
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,44 @@
+{
+ description = "Parallel sequential iterator for Rust";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+ flake-parts.url = "github:hercules-ci/flake-parts";
+ };
+
+ outputs =
+ inputs@{
+ self,
+ nixpkgs,
+ flake-parts,
+ ...
+ }:
+ flake-parts.lib.mkFlake { inherit inputs; } {
+ systems = [
+ "x86_64-linux"
+ "aarch64-linux"
+ "x86_64-darwin"
+ "aarch64-darwin"
+ ];
+
+ perSystem =
+ { pkgs, system, ... }:
+ {
+ # nix develop
+ devShells.default = pkgs.mkShell {
+ nativeBuildInputs = with pkgs; [
+ rustc
+ cargo
+ rustfmt
+ clippy
+ cargo-audit
+ cargo-edit
+ rust-analyzer
+ ];
+ };
+
+ # nix fmt
+ formatter = pkgs.nixfmt-tree;
+ };
+ };
+}
Generated by cgit. See skreutz.com for my tech blog and contact information.