-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
31 lines (30 loc) · 925 Bytes
/
flake.nix
File metadata and controls
31 lines (30 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
description = "Opcode types for Ethereum Virtual Machine (EVM)";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-darwin" ];
perSystem = { config, self', pkgs, ... }: let
package = import ./default.nix { inherit pkgs; };
buildTools = with pkgs.haskellPackages; [
stack
cabal-install
haskell-language-server
hlint
ghcid
hpack
tasty-discover
];
in {
packages.default = package;
devShells.default = pkgs.haskellPackages.shellFor {
packages = _: [ (pkgs.haskell.lib.doBenchmark package) ];
doBenchmark = true;
nativeBuildInputs = buildTools;
};
};
};
}