Skip to content

Commit

Permalink
build: add flake with shell
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Hindborg committed Nov 5, 2024
1 parent ab9b3a6 commit 7abfd6e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -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
]; };
}
);
}

0 comments on commit 7abfd6e

Please sign in to comment.