Skip to content

Commit

Permalink
Merge pull request #6 from astro/nix
Browse files Browse the repository at this point in the history
Add a default.nix
  • Loading branch information
vidister authored Oct 22, 2023
2 parents 770701d + fb4e5f6 commit f3a65d2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
19 changes: 19 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ pkgs ? import <nixpkgs> {}
}:

pkgs.stdenv.mkDerivation {
name = "denog-routing-guide";

src = ./.;

buildInputs = with pkgs.python3Packages; [
mkdocs
mkdocs-material
];

buildPhase = ''
mkdocs build -d $out
'';
}


9 changes: 5 additions & 4 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
with (import <nixpkgs> {});
{ pkgs ? import <nixpkgs> {}
}:

pkgs.mkShell {
buildInputs = with pkgs; [
python3Packages.mkdocs
python3Packages.mkdocs-material
buildInputs = with pkgs.python3Packages; [
mkdocs
mkdocs-material
];
}

Expand Down

0 comments on commit f3a65d2

Please sign in to comment.