From 7abfd6e8810af36083d078e08702ad4780136598 Mon Sep 17 00:00:00 2001 From: Andreas Hindborg Date: Tue, 5 Nov 2024 14:52:30 +0100 Subject: [PATCH] build: add flake with shell --- flake.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..1b704de --- /dev/null +++ b/flake.nix @@ -0,0 +1,25 @@ + +{ + description = "Shell for building rust-for-linux.com"; + inputs.nixpkgs.url = "nixpkgs/nixos-24.05"; + inputs.systems.url = "github:nix-systems/default"; + inputs.flake-utils = { + url = "github:numtide/flake-utils"; + inputs.systems.follows = "systems"; + }; + + outputs = + { nixpkgs, flake-utils, ... }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = nixpkgs.legacyPackages.${system}; + in + { + devShells.default = pkgs.mkShell { packages = with pkgs; [ + python3 + mdbook + ]; }; + } + ); +}