unison: M4i -> M5b

This commit is contained in:
Rafael Fernández López 2023-07-19 00:14:55 +02:00
parent fd1fd2cc08
commit daeb3028cc

View file

@ -1,23 +1,23 @@
{ lib, stdenv, fetchurl, autoPatchelfHook { lib, stdenv, fetchurl, autoPatchelfHook
, ncurses5, zlib, gmp , ncurses6, zlib, gmp
, makeWrapper , makeWrapper
, less , less
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "unison-code-manager"; pname = "unison-code-manager";
milestone_id = "M4i"; milestone_id = "M5b";
version = "1.0.${finalAttrs.milestone_id}-alpha"; version = "1.0.${finalAttrs.milestone_id}-alpha";
src = if (stdenv.isDarwin) then src = if (stdenv.isDarwin) then
fetchurl { fetchurl {
url = "https://github.com/unisonweb/unison/releases/download/release/${finalAttrs.milestone_id}/ucm-macos.tar.gz"; url = "https://github.com/unisonweb/unison/releases/download/release/${finalAttrs.milestone_id}/ucm-macos.tar.gz";
hash = "sha256-1Qp1SB5rCsVimZzRo1NOX8HBoMEGlIycJPm3zGTUuOw="; hash = "sha256-Uknt1NrywmGs8YovlnN8TU8iaYgT1jeYP4SQCuK1u+I=";
} }
else else
fetchurl { fetchurl {
url = "https://github.com/unisonweb/unison/releases/download/release/${finalAttrs.milestone_id}/ucm-linux.tar.gz"; url = "https://github.com/unisonweb/unison/releases/download/release/${finalAttrs.milestone_id}/ucm-linux.tar.gz";
hash = "sha256-Qx8vO/Vaz0VdCGXwIwRQIuMlp44hxCroQ7m7Y+m7aXk="; hash = "sha256-CZLGA4fFFysxHkwedC8RBLmHWwr3BM8xqps7hN3TC/g=";
}; };
# The tarball is just the prebuilt binary, in the archive root. # The tarball is just the prebuilt binary, in the archive root.
@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
dontConfigure = true; dontConfigure = true;
nativeBuildInputs = [ makeWrapper ] ++ (lib.optional (!stdenv.isDarwin) autoPatchelfHook); nativeBuildInputs = [ makeWrapper ] ++ (lib.optional (!stdenv.isDarwin) autoPatchelfHook);
buildInputs = lib.optionals (!stdenv.isDarwin) [ ncurses5 zlib gmp ]; buildInputs = lib.optionals (!stdenv.isDarwin) [ ncurses6 zlib gmp ];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin