Skip to content

Commit

Permalink
Added stdenv to sweettest
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Sep 11, 2024
1 parent 2887a7f commit d27c989
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ rec {
pkgs = holochainPkgs { inherit system; };
craneLib = holochainCraneLib { inherit system; };
in pkgs.callPackage ./nix/sweettest.nix {
inherit dna craneLib crateCargoToml cargoArtifacts workspacePath;
inherit pkgs dna craneLib crateCargoToml cargoArtifacts
workspacePath;
buildInputs = buildInputs ++ holochainDeps {
inherit pkgs;
lib = pkgs.lib;
Expand Down
2 changes: 1 addition & 1 deletion nix/fixtures/module-repo/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions nix/sweettest.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
{ dna, lib, cargoArtifacts, buildInputs, workspacePath, craneLib, crateCargoToml
, ... }:
{ pkgs, dna, lib, cargoArtifacts, buildInputs, workspacePath, craneLib
, crateCargoToml, ... }:
let
cargoToml = builtins.fromTOML (builtins.readFile crateCargoToml);
crate = cargoToml.package.name;

src = craneLib.cleanCargoSource (craneLib.path workspacePath);

commonArgs = { inherit cargoArtifacts buildInputs src; };
commonArgs = {
inherit cargoArtifacts buildInputs src;
stdenv = if pkgs.stdenv.isDarwin then
pkgs.overrideSDK pkgs.stdenv "11.0"
else
pkgs.stdenv;
};

listCratesFromWorkspace = src:
let
Expand Down

0 comments on commit d27c989

Please sign in to comment.