-
-
Save emmanueldenloye/f65192e5c49e8ade0355cd4fcc7fae6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hsOnly = super: component: pkg: pkg.overrideAttrs ({ src, ... }: { | |
src = pkgs.lib.cleanSourceWith { | |
filter = (name: type: type == "directory" || (!(pkgs.lib.hasSuffix ".hi" name) && !(pkgs.lib.hasSuffix ".o" name))); | |
src = pkgs.lib.cleanSource src; | |
}; | |
disallowedReferences = [ super.tezos-bake-monitor-lib ]; | |
postInstall = if component != null then '' | |
${pkgs.removeReferencesTo}/bin/remove-references-to -t ${super.tezos-bake-monitor-lib} $out/${component} | |
'' else "" ; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment