Merge pull request #244225 from ereslibre/bump-unison-ucm-M5b

unison: M4i -> M5b
This commit is contained in:
Sandro 2023-07-23 16:21:56 +02:00 committed by GitHub
commit 9699a81f6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,23 +1,23 @@
{ lib, stdenv, fetchurl, autoPatchelfHook
, ncurses5, zlib, gmp
, ncurses6, zlib, gmp
, makeWrapper
, less
}:
stdenv.mkDerivation (finalAttrs: {
pname = "unison-code-manager";
milestone_id = "M4i";
milestone_id = "M5b";
version = "1.0.${finalAttrs.milestone_id}-alpha";
src = if (stdenv.isDarwin) then
fetchurl {
url = "https://github.com/unisonweb/unison/releases/download/release/${finalAttrs.milestone_id}/ucm-macos.tar.gz";
hash = "sha256-1Qp1SB5rCsVimZzRo1NOX8HBoMEGlIycJPm3zGTUuOw=";
hash = "sha256-Uknt1NrywmGs8YovlnN8TU8iaYgT1jeYP4SQCuK1u+I=";
}
else
fetchurl {
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.
@ -26,7 +26,7 @@ stdenv.mkDerivation (finalAttrs: {
dontConfigure = true;
nativeBuildInputs = [ makeWrapper ] ++ (lib.optional (!stdenv.isDarwin) autoPatchelfHook);
buildInputs = lib.optionals (!stdenv.isDarwin) [ ncurses5 zlib gmp ];
buildInputs = lib.optionals (!stdenv.isDarwin) [ ncurses6 zlib gmp ];
installPhase = ''
mkdir -p $out/bin