Last active
January 2, 2025 23:10
-
-
Save niklaskorz/571ff7d72a5f51bce58438c1caa23ce5 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
{ pkgs }: | |
pkgs.zed-editor.overrideAttrs ( | |
finalAttrs: prevAttrs: { | |
version = "0.168.0"; | |
src = prevAttrs.src.override { | |
tag = "v${finalAttrs.version}-pre"; | |
hash = "sha256-GcsK64tJrEp1QVcLJV2xTWAzupmNXsMgzzW5KOEFqTI="; | |
}; | |
postPatch = | |
builtins.replaceStrings [ prevAttrs.version ] [ finalAttrs.version ] | |
prevAttrs.postPatch; | |
cargoDeps = pkgs.rustPlatform.fetchCargoVendor { | |
inherit (finalAttrs) pname version src; | |
hash = "sha256-EuQhqTz200P5xfJGowP1jZxbyJbE2Nl3hm2wVubdOOM="; | |
}; | |
env = prevAttrs.env // { | |
RELEASE_VERSION = finalAttrs.version; | |
}; | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment