Commit 20a6cad1 authored by Michael Hoang's avatar Michael Hoang
Browse files

utm: switch to `finalAttrs`

parent 3fbab70c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -6,12 +6,12 @@
  stdenvNoCC,
}:

stdenvNoCC.mkDerivation rec {
stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "utm";
  version = "4.7.5";

  src = fetchurl {
    url = "https://github.com/utmapp/UTM/releases/download/v${version}/UTM.dmg";
    url = "https://github.com/utmapp/UTM/releases/download/v${finalAttrs.version}/UTM.dmg";
    hash = "sha256-qENck8+1+Lv+6ksTTPrRrGa2djK3XkOMY7GorgQ77w4=";
  };

@@ -61,7 +61,7 @@ stdenvNoCC.mkDerivation rec {
      See https://docs.getutm.app/ for more information.
    '';
    homepage = "https://mac.getutm.app/";
    changelog = "https://github.com/utmapp/utm/releases/tag/v${version}";
    changelog = "https://github.com/utmapp/utm/releases/tag/v${finalAttrs.version}";
    mainProgram = "UTM";
    license = lib.licenses.asl20;
    platforms = lib.platforms.darwin; # 11.3 is the minimum supported version as of UTM 4.
@@ -71,4 +71,4 @@ stdenvNoCC.mkDerivation rec {
      wegank
    ];
  };
}
})