Skip to content

Commit

Permalink
flake.nix instead of shell.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdbrock committed Feb 19, 2024
1 parent e50b764 commit db681d4
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 28 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,11 @@ for various parts of the library.

### Nix

The file `shell.nix` declares a *Nix* shell environment which provides all
The file `flake.nix` declares a *Nix* shell development environment which provides all
dependencies for every target in the `Makefile`, including *Doxygen*.
Enter the *Nix* shell by
[installing *Nix*](https://nixos.org/download.html)
and then running `nix-shell` in this directory. From the `nix-shell` prompt,
and then running `nix develop` in this directory. From the `nix develop` prompt,
you will be able to build all `Makefile` targets.

### Pull Requests
Expand Down
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
description = "hffix";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, ... }@inputs:
inputs.flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ doxygen stack gmp zlib ];
buildInputs = with pkgs; [ boost ];
LC_ALL = "C.UTF-8";
shellHook = ''
echo ""
echo ' hffix Development Environment'
echo ' To run the test suite: make test'
echo ""
'';
};
});
}
26 changes: 0 additions & 26 deletions shell.nix

This file was deleted.

0 comments on commit db681d4

Please sign in to comment.