-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update of the nix flake tooling (#1108)
- Loading branch information
Showing
9 changed files
with
89 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
description = "Flake commands (including dev shells) for working with the monorepo."; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
flakeUtils.url = "github:numtide/flake-utils"; | ||
foundry.url = "github:shazow/foundry.nix"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, flakeUtils, foundry } : | ||
flakeUtils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = import nixpkgs { inherit system; }; | ||
# minimem development shell | ||
minimumEVMDevInputs = with pkgs; [ | ||
# for nodejs ecosystem | ||
yarn | ||
nodejs-16_x | ||
# for solidity development | ||
foundry.defaultPackage.${system} | ||
]; | ||
# additional tooling for whitehat hackers | ||
whitehatInputs = with pkgs; [ | ||
slither-analyzer | ||
echidna | ||
]; | ||
# for developing specification | ||
specInputs = with pkgs; [ | ||
# for nodejs ecosystem | ||
yarn | ||
gnumake | ||
nodePackages.nodemon | ||
# for haskell spec | ||
cabal-install | ||
haskell.compiler.ghc92 | ||
(haskell-language-server.override { | ||
supportedGhcVersions = [ "924" ]; | ||
}) | ||
hlint | ||
gnuplot | ||
# sage math | ||
sage | ||
# yellow-paper pipeline | ||
haskellPackages.lhs2tex | ||
python39Packages.pygments | ||
(texlive.combine { | ||
inherit (texlive) | ||
scheme-basic metafont | ||
collection-latex collection-latexextra | ||
collection-bibtexextra collection-mathscience | ||
collection-fontsrecommended collection-fontsextra; | ||
}) | ||
]; | ||
in { | ||
devShells.default = with pkgs; mkShell { | ||
buildInputs = minimumEVMDevInputs; | ||
}; | ||
devShells.whitehat = with pkgs; mkShell { | ||
buildInputs = minimumEVMDevInputs | ||
++ whitehatInputs; | ||
}; | ||
devShells.spec = with pkgs; mkShell { | ||
buildInputs = specInputs; | ||
}; | ||
devShells.full = with pkgs; mkShell { | ||
buildInputs = minimumEVMDevInputs | ||
++ whitehatInputs | ||
++ specInputs; | ||
}; | ||
}); | ||
} | ||
|
Oops, something went wrong.