From 00e43e801a966b40bffcb9d72f3baec11777305e Mon Sep 17 00:00:00 2001 From: Nicola Belluti Date: Sat, 14 Sep 2024 12:29:14 +0200 Subject: [PATCH] Added Nix --- README.md | 2 +- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 26 ++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/README.md b/README.md index 733d993..79c2f65 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# fermi-news-scraper +# Fermi News Scraper diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..9faffd1 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1726062873, + "narHash": "sha256-IiA3jfbR7K/B5+9byVi9BZGWTD4VSbWe8VLpp9B/iYk=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "4f807e8940284ad7925ebd0a0993d2a1791acb2f", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..a56c840 --- /dev/null +++ b/flake.nix @@ -0,0 +1,26 @@ +{ + description = "Rust setup"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs, ... }: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in { + devShells.${system}.default = pkgs.mkShell { + + buildInputs = with pkgs; [ + clippy + rustfmt + + cargo + cargo-watch + ]; + + }; + }; +} +