Skip to content

Commit

Permalink
Add derivation for CMake Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
aleasims committed Jun 3, 2024
1 parent e2e91ca commit 39c6b74
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@
intx = intx;
});
evmc = (pkgs.callPackage ./nix/evmc/evmc.nix { });
cmake_modules = (pkgs.callPackage ./nix/cmake_modules/cmake_modules.nix { });
# The "all" package will build all packages. Convenient for CI,
# so that "nix build" will check that all packages are correct.
# The packages that have no changes will not be rebuilt, and instead
# fetched from the cache.
all = pkgs.symlinkJoin {
name = "all";
paths = [ intx hashtree sszpp evmc ];
paths = [ intx hashtree sszpp evmc cmake_modules ];
};
default = all;
};
Expand Down
14 changes: 14 additions & 0 deletions nix/cmake_modules/cmake_modules.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{ stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation {
name = "cmake_modules";

src = fetchFromGitHub {
owner = "BoostCMake";
repo = "cmake_modules";
rev = "57639741ecf018835deb97a04db2200241d7fbd3";
hash = "sha256-/Fu+Co1W/0/c7GhLLv1Ozyw7LyezYGZtj3NODfS339o=";
};

nativeBuildInputs = [ cmake ];
}

0 comments on commit 39c6b74

Please sign in to comment.