Skip to content

Commit

Permalink
Simplified dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Dec 19, 2024
1 parent 69aa72d commit d5eb134
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -114,26 +114,8 @@
systems = builtins.attrNames inputs.holonix.devShells;

perSystem = { inputs', self', config, pkgs, system, lib, ... }: rec {
dependencies.holochain.buildInputs = (with pkgs; [ perl openssl ])
++ (lib.optionals pkgs.stdenv.isLinux [ pkgs.pkg-config pkgs.go ])
++ (pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.libiconv

pkgs.darwin.apple_sdk.frameworks.AppKit
pkgs.darwin.apple_sdk.frameworks.WebKit
(if pkgs.system == "x86_64-darwin" then
(pkgs.darwin.apple_sdk_11_0.stdenv.mkDerivation {
name = "go";
nativeBuildInputs = with pkgs; [ makeBinaryWrapper go ];
dontBuild = true;
dontUnpack = true;
installPhase = ''
makeWrapper ${pkgs.go}/bin/go $out/bin/go
'';
})
else
pkgs.go)
]);
dependencies.holochain.buildInputs = (with pkgs; [ perl openssl go bzip2 ])
++ (lib.optionals pkgs.stdenv.isLinux [ pkgs.pkg-config ]);
builders = {
rustZome = { crateCargoToml, workspacePath, cargoArtifacts ? null
, matchingZomeHash ? null, meta ? { }, zomeEnvironmentVars ? { } }:
Expand Down

0 comments on commit d5eb134

Please sign in to comment.