Skip to content

Instantly share code, notes, and snippets.

@niklaskorz
Last active January 2, 2025 23:10
Show Gist options
  • Save niklaskorz/571ff7d72a5f51bce58438c1caa23ce5 to your computer and use it in GitHub Desktop.
Save niklaskorz/571ff7d72a5f51bce58438c1caa23ce5 to your computer and use it in GitHub Desktop.

Revisions

  1. niklaskorz revised this gist Jan 2, 2025. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions zed-editor-preview.nix
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    { pkgs }:
    pkgs.zed-editor.overrideAttrs (
    finalAttrs: prevAttrs: {
    version = "0.168.0-pre";
    version = "0.168.0";
    src = prevAttrs.src.override {
    tag = "v${finalAttrs.version}";
    tag = "v${finalAttrs.version}-pre";
    hash = "sha256-GcsK64tJrEp1QVcLJV2xTWAzupmNXsMgzzW5KOEFqTI=";
    };
    postPatch =
  2. niklaskorz revised this gist Jan 2, 2025. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions zed-editor-preview.nix
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    { pkgs }:
    pkgs.zed-editor.overrideAttrs (
    finalAttrs: prevAttrs: {
    version = "0.168.0-pre";
  3. niklaskorz created this gist Jan 2, 2025.
    19 changes: 19 additions & 0 deletions zed-editor-preview.nix
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    pkgs.zed-editor.overrideAttrs (
    finalAttrs: prevAttrs: {
    version = "0.168.0-pre";
    src = prevAttrs.src.override {
    tag = "v${finalAttrs.version}";
    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;
    };
    }
    )