From db3868e64cd973fc12e7f44f5322a4ab023dd72f Mon Sep 17 00:00:00 2001 From: pcasaretto Date: Tue, 20 Feb 2024 16:13:19 -0300 Subject: [PATCH] hexfiend: 2.16.0 -> 2.17.1 https://hexfiend.github.io/HexFiend/ReleaseNotes.html Co-authored-by: Pol Dellaiera --- pkgs/os-specific/darwin/hexfiend/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/darwin/hexfiend/default.nix b/pkgs/os-specific/darwin/hexfiend/default.nix index 29767a1154d5..df81d7882d00 100644 --- a/pkgs/os-specific/darwin/hexfiend/default.nix +++ b/pkgs/os-specific/darwin/hexfiend/default.nix @@ -1,12 +1,19 @@ { stdenv, lib, fetchurl, undmg }: +let + urlSuffix = version: if lib.versions.patch == 0 then + lib.versions.majorMinor version + else + version + ; +in stdenv.mkDerivation rec { pname = "hexfiend"; - version = "2.16.0"; + version = "2.17.1"; src = fetchurl { - url = "https://github.com/HexFiend/HexFiend/releases/download/v${version}/Hex_Fiend_${lib.versions.majorMinor version}.dmg"; - sha256 = "sha256-jO57bW5TyuQ0mjKKsSwDoGLp2TZ1d+m159flVGaVrLc="; + url = "https://github.com/HexFiend/HexFiend/releases/download/v${version}/Hex_Fiend_${urlSuffix version}.dmg"; + hash = "sha256-QpGmpxDpdS+sJtsNtp0VSAd9WJXaZiKTH4yDsDK8FSk="; }; sourceRoot = "Hex Fiend.app";