diff options
author | Kyle Carberry <kyle@carberry.com> | 2024-04-20 12:02:52 -0400 |
---|---|---|
committer | Kyle Carberry <kyle@carberry.com> | 2024-04-20 12:05:14 -0400 |
commit | 2268cf93d4de6fcd53f008da2a7d2bdfa871f72e (patch) | |
tree | 3d9da3c36ec3d07f06daacef205ed0ef7b91e984 /pkgs/development/tools/coder/default.nix | |
parent | 0c97ced70e0b92d46e5e53e239fec5201f8b0811 (diff) |
coder: add support for mainline channel
Coder releases with the latest tag for a stable release, and an untagged latest release for mainline. This change enables the update script to update both release candidates and enables the installation of both as well!
Diffstat (limited to 'pkgs/development/tools/coder/default.nix')
-rw-r--r-- | pkgs/development/tools/coder/default.nix | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/pkgs/development/tools/coder/default.nix b/pkgs/development/tools/coder/default.nix index 5557c4db17e5f..bee71dc2aeae7 100644 --- a/pkgs/development/tools/coder/default.nix +++ b/pkgs/development/tools/coder/default.nix @@ -1,4 +1,5 @@ { lib +, channel ? "stable" , fetchurl , installShellFiles , makeBinaryWrapper @@ -9,18 +10,33 @@ let inherit (stdenvNoCC.hostPlatform) system; + + channels = { + stable = { + version = "2.9.3"; + hash = { + x86_64-linux = "sha256-6VS21x2egWBV6eJqRCBGG7mEGPIDFtY9GN6Ry4ilC70="; + x86_64-darwin = "sha256-UBUGjA+jUkT6p9714l8IvDDI/qhWNctVFOvcA2S5kQU="; + aarch64-linux = "sha256-2QAahqcM2gi3lT+18q2Nm9GNqVsqzX3RajBsTn+KB1c="; + aarch64-darwin = "sha256-uEH7Y7c9BcU/Q/jwx/inFMvUrgm2dUruID+FJL+rA6Y="; + }; + }; + mainline = { + version = "2.10.1"; + hash = { + x86_64-linux = "sha256-jNPL30e5xvyajlIqivtEpSb3cRhfgFhLFlC+CaLY2IM="; + x86_64-darwin = "sha256-U1eQaYwnm/mdQoZ8YxK/+s3HboVfMIAtdI7aQnCiDM8="; + aarch64-linux = "sha256-YtSyKZYG8vdubZUfo2FjEoVwSF82TXzeLJjPpHqgFDk="; + aarch64-darwin = "sha256-aQSiXK7voP5/mPFIscfTnSc4Ae5/f+WW8MR6ZtuC/eY="; + }; + }; + }; in stdenvNoCC.mkDerivation (finalAttrs: { pname = "coder"; - version = "2.9.1"; - + version = channels.${channel}.version; src = fetchurl { - hash = { - x86_64-linux = "sha256-r4+u/s/dOn2GhyhEROu8i03QY3VA/bIyO/Yj7KSqicY="; - x86_64-darwin = "sha256-uShCmMvb5OcinqP0CmrlP9QAJkjfG3g1QuHE4JRDOjE="; - aarch64-linux = "sha256-tvpzfJ95YYfCY5V4iayjAmY5PDw+1uHUhY5F3pv/2Uk="; - aarch64-darwin = "sha256-sP9HnB2DzAU9IvL3+QPmIFLvRkGkoxSoa68uXGQrNkw="; - }.${system}; + hash = (channels.${channel}.hash).${system}; url = let |