Skip to content

Commit 7abfd6e

Browse files
author
Andreas Hindborg
committed
build: add flake with shell
1 parent ab9b3a6 commit 7abfd6e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

flake.nix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
{
3+
description = "Shell for building rust-for-linux.com";
4+
inputs.nixpkgs.url = "nixpkgs/nixos-24.05";
5+
inputs.systems.url = "github:nix-systems/default";
6+
inputs.flake-utils = {
7+
url = "github:numtide/flake-utils";
8+
inputs.systems.follows = "systems";
9+
};
10+
11+
outputs =
12+
{ nixpkgs, flake-utils, ... }:
13+
flake-utils.lib.eachDefaultSystem (
14+
system:
15+
let
16+
pkgs = nixpkgs.legacyPackages.${system};
17+
in
18+
{
19+
devShells.default = pkgs.mkShell { packages = with pkgs; [
20+
python3
21+
mdbook
22+
]; };
23+
}
24+
);
25+
}

0 commit comments

Comments
 (0)