Skip to content

Commit

Permalink
tmp: remove iohk-nix-utils dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Nov 21, 2022
1 parent 98766d2 commit a091136
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
3 changes: 1 addition & 2 deletions nix/haskell.nix
Expand Up @@ -63,11 +63,10 @@ CHaP: haskell-nix: haskell-nix.cabalProject' [
# version info. It uses the "gitrev" option.
setGitRevPostInstall = setGitRevPostInstall' config.gitrev;
setGitRevPostInstall' = gitrev: ''
${pkgs.buildPackages.iohk-nix-utils}/bin/set-git-rev "${gitrev}" $out/bin/*
'';

rewriteLibsPostInstall = lib.optionalString (pkgs.stdenv.hostPlatform.isDarwin) ''
export PATH=$PATH:${lib.makeBinPath (with pkgs.buildPackages; [ iohk-nix-utils binutils nix ])}
export PATH=$PATH:${lib.makeBinPath (with pkgs.buildPackages; [ binutils nix ])}
rewrite-libs $out/bin $out/bin/*
'';

Expand Down
24 changes: 0 additions & 24 deletions nix/overlays/build-tools.nix
Expand Up @@ -178,28 +178,4 @@ in {
# These overrides are picked up by cabalWrapped in iohk-nix
cabal = pkgs.haskell-build-tools.cabal-install;
cabal-install = pkgs.haskell-build-tools.cabal-install;

# Override this package set from iohk-nix with local materializations.
# This is a little bit messy, unfortunately.
iohk-nix-utils = let
name = "iohk-nix-utils";
project = super.haskellBuildUtils.mkProject ({
inherit compiler-nix-name index-state;
} // pkgs.lib.optionalAttrs enableMaterialization {
checkMaterialization = false;
materialized = ../materialized + "/${name}";
});
in pkgs.symlinkJoin {
inherit name;
paths = pkgs.lib.attrValues project.iohk-nix-utils.components.exes;
passthru = {
inherit project;
inherit (project) roots;
regenerateMaterialized = pkgs.writeShellScriptBin "regenerate-materialized-nix"
(pkgs.lib.optionalString enableMaterialization ''
echo 'Updating materialized nix for ${name}'
${mkMaterialize project.iohk-nix-utils} nix/materialized/${name}
'');
};
};
}

0 comments on commit a091136

Please sign in to comment.