From 8a1a8145601b5ddc5c089d5650922c15612b333b Mon Sep 17 00:00:00 2001 From: Artur Cygan Date: Mon, 14 Nov 2022 22:55:59 +0100 Subject: [PATCH] Use hevm from nixpkgs as it's fixed now --- default.nix | 15 +++++---------- flake.lock | 22 +++------------------- flake.nix | 7 +------ 3 files changed, 9 insertions(+), 35 deletions(-) diff --git a/default.nix b/default.nix index faf7fb365..93e996baf 100644 --- a/default.nix +++ b/default.nix @@ -1,12 +1,7 @@ { pkgs ? import (builtins.fetchTarball { - name = "nixpkgs-unstable-2022-02-10"; - url = "https://github.com/nixos/nixpkgs/archive/1882c6b7368fd284ad01b0a5b5601ef136321292.tar.gz"; - sha256 = "sha256:0zg7ak2mcmwzi2kg29g4v9fvbvs0viykjsg2pwaphm1fi13s7s0i"; - }) {}, - newerPkgs ? import (builtins.fetchTarball { - name = "nixpkgs-22.05-darwin-2022-06-27"; - url = "https://github.com/nixos/nixpkgs/archive/ce6aa13369b667ac2542593170993504932eb836.tar.gz"; - sha256 = "sha256:0d643wp3l77hv2pmg2fi7vyxn4rwy0iyr8djcw1h5x72315ck9ik"; + name = "nixpkgs-unstable-2022-11-14"; + url = "https://github.com/nixos/nixpkgs/archive/dad4de1694cd92d9a0e123bfdf134d0047b836a5.tar.gz"; + sha256 = "sha256:0zg7ak2mcmwzi2kg29g4v9fvbvs0viykjsg2pwaphm1fi13s7x0i"; }) {}, profiling ? false, tests ? false @@ -36,7 +31,7 @@ let v = "2.0.3"; - testInputs = [ newerPkgs.slither-analyzer solc ]; + testInputs = [ pkgs.slither-analyzer solc ]; f = { mkDerivation, aeson, ansi-terminal, base, base16-bytestring, binary , brick, bytestring, containers, data-dword, data-has, deepseq @@ -64,7 +59,7 @@ let testHaskellDepends = [ tasty tasty-hunit tasty-quickcheck ]; testToolDepends = testInputs; configureFlags = if profiling then [ "--enable-profiling" "--enable-library-profiling" ] else []; - libraryToolDepends = [ hpack newerPkgs.slither-analyzer solc ]; + libraryToolDepends = [ hpack pkgs.slither-analyzer solc ]; preConfigure = '' hpack # re-enable dynamic build for Linux diff --git a/flake.lock b/flake.lock index 483cb00af..9359bc93a 100644 --- a/flake.lock +++ b/flake.lock @@ -1,27 +1,12 @@ { "nodes": { - "newerNixpkgs": { - "locked": { - "lastModified": 1659009481, - "narHash": "sha256-BRM5R7AMKa58NAJnZsmWsVhDxuGllnhTvpVEZ+sP49I=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "2d9b7cb5f0a41da95fccc120acf730fd20d8598d", - "type": "github" - }, - "original": { - "owner": "NixOS", - "repo": "nixpkgs", - "type": "github" - } - }, "nixpkgs": { "locked": { - "lastModified": 1659009481, - "narHash": "sha256-EeijR4guVHgVv+JpOX3cQO+1XdrkJfGmiJ9XVsVU530=", + "lastModified": 1668462796, + "narHash": "sha256-MdQVi7GvWqTY5vldTC+HDNm6sEKl89MBbesudjwEkgo=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "1882c6b7368fd284ad01b0a5b5601ef136321292", + "rev": "b3a285628a6928f62cdf4d09f4e656f7ecbbcafb", "type": "github" }, "original": { @@ -32,7 +17,6 @@ }, "root": { "inputs": { - "newerNixpkgs": "newerNixpkgs", "nixpkgs": "nixpkgs" } } diff --git a/flake.nix b/flake.nix index eacecfc3a..1569a1bd5 100644 --- a/flake.nix +++ b/flake.nix @@ -6,25 +6,20 @@ inputs = { nixpkgs.url = github:NixOS/nixpkgs; - newerNixpkgs.url = github:NixOS/nixpkgs; }; - outputs = { self, nixpkgs, newerNixpkgs }: { + outputs = { self, nixpkgs }: { defaultPackage.x86_64-linux = import ./. { pkgs = nixpkgs.legacyPackages.x86_64-linux; - newerPkgs = newerNixpkgs.legacyPackages.x86_64-linux; }; defaultPackage.aarch64-linux = import ./. { pkgs = nixpkgs.legacyPackages.aarch64-linux; - newerPkgs = newerNixpkgs.legacyPackages.aarch64-linux; }; defaultPackage.x86_64-darwin = import ./. { pkgs = nixpkgs.legacyPackages.x86_64-darwin; - newerPkgs = newerNixpkgs.legacyPackages.x86_64-darwin; }; defaultPackage.aarch64-darwin = import ./. { pkgs = nixpkgs.legacyPackages.aarch64-darwin; - newerPkgs = newerNixpkgs.legacyPackages.aarch64-darwin; }; }; }