Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vistafonts: fix build #117604

Merged
merged 1 commit into from Mar 27, 2021
Merged

vistafonts: fix build #117604

merged 1 commit into from Mar 27, 2021

Conversation

eduardosm
Copy link
Contributor

Motivation for this change

Build was previously failing with

/build/file: no valid cabinets found

Additonaly, a faster download mirror is used. The downloaded file is not identical to the one from the previous mirror, but the produced result is unchanged.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Comment on lines 32 to 34
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "0cnvy7w18ga6m8sln7rzd9rbxzfx2b0ghl9m4pjzrmah5xfm5cn7";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mkDerivation does not require this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes the hash depend only on the result, so it avoids unnecessary rebuilds. The package contains font files that won't change if the environment is updated. Other font packages, such as corefonts or cantarell-fonts also do this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How long does the package take to build? If it only takes 5 seconds than this is not worth it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed then

Build was previously failing with
```
/build/file: no valid cabinets found
```

Additonaly, a faster download mirror is used. The downloaded file is not identical to the one from the previous mirror, but the produced result is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants