use a patched zed to fix font display

This commit is contained in:
insects 2024-09-09 23:59:47 +02:00
parent ccb712a42b
commit 0b8783c25d
5 changed files with 14757 additions and 10 deletions

View file

@ -7,10 +7,22 @@
# This one contains whatever you want to overlay
# You can change versions, add patches, set compilation flags, anything really.
# https://nixos.wiki/wiki/Overlays
modifications = _final: _prev: {
# example = prev.example.overrideAttrs (oldAttrs: rec {
# ...
# });
modifications = final: prev: {
zed-editor = final.callPackage prev.zed-editor.override {
rustPlatform = final.rustPlatform // {
buildRustPackage = args: final.rustPlatform.buildRustPackage (args // {
patches = (args.patches or [ ] ++ [
./zed-use-custom-cosmic-text.patch
]);
cargoLock = {
lockFile = ./zed.Cargo.lock;
outputHashes = args.cargoLock.outputHashes // {
"cosmic-text-0.11.2" = "sha256-ld9mrvtZIEftenn1D5IuXFQikJU2GAil6MCsrIh9o14=";
};
};
});
};
};
};
# When applied, the unstable nixpkgs set (declared in the flake inputs) will