From 21a53c6cf2b0306b02a201d5659fa96468d758e7 Mon Sep 17 00:00:00 2001 From: adjoly Date: Sun, 27 Apr 2025 17:19:51 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=E2=9C=A8=E3=80=8D=20feat:=20added=20f?= =?UTF-8?q?lake?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/main.sol | 0 flake.nix | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 code/main.sol create mode 100644 flake.nix diff --git a/code/main.sol b/code/main.sol new file mode 100644 index 0000000..e69de29 diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..8f75388 --- /dev/null +++ b/flake.nix @@ -0,0 +1,33 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + pogit = { + url = "github:y-syo/pogit"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = inputs@{ nixpkgs, ... }: + let + supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; + forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { + pkgs = import nixpkgs { inherit system; }; + }); + in { + devShells = forEachSupportedSystem ({ pkgs }: { + default = pkgs.mkShell.override + {} + { + buildInputs = with pkgs;[ + + ]; + hardeningDisable = [ "all" ]; + packages = with pkgs; [ + solc + ]; + }; + }); + }; +} + +