diff options
| -rw-r--r-- | .envrc | 1 | ||||
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | CHANGELOG.md | 4 | ||||
| -rw-r--r-- | flake.lock | 61 | ||||
| -rw-r--r-- | flake.nix | 24 | 
5 files changed, 92 insertions, 0 deletions
| @@ -0,0 +1 @@ +use flake @@ -1,2 +1,4 @@  /target  /NOTES.md +/result +/.direnv diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ac1c7d..d284cab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ 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 diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..36ea0c1 --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ +  "nodes": { +    "flake-utils": { +      "inputs": { +        "systems": "systems" +      }, +      "locked": { +        "lastModified": 1731533236, +        "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", +        "owner": "numtide", +        "repo": "flake-utils", +        "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", +        "type": "github" +      }, +      "original": { +        "owner": "numtide", +        "repo": "flake-utils", +        "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" +      } +    }, +    "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/flake.nix b/flake.nix new file mode 100644 index 0000000..fd143ba --- /dev/null +++ b/flake.nix @@ -0,0 +1,24 @@ +{ +  description = "Parallel sequential iterator for Rust"; + +  inputs = { +    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; +    flake-utils.url = "github:numtide/flake-utils"; +  }; + +  outputs = { self, nixpkgs, flake-utils, ... }@inputs: +    flake-utils.lib.eachDefaultSystem (system: +      let +	pkgs = import nixpkgs { +	  inherit system; +	  config = { }; +	  overlays = [ ]; +	}; +    in { +      # nix develop +      devShells.default = pkgs.mkShell { +	nativeBuildInputs = with pkgs; [ rustc cargo rustfmt clippy cargo-audit cargo-edit ]; +      }; +    } +  ); +} |