unison-ucm 1.0.M1l-alpha -> 1.0.M1m-alpha

See title.  Also, add missing `less` to buildInputs
This commit is contained in:
Dave Nicponski 2020-11-24 16:41:36 -05:00
parent 715cd2273e
commit 1a1e0f03b4

View File

@ -1,21 +1,23 @@
{ stdenv, fetchurl, autoPatchelfHook
, ncurses5, zlib, gmp
, makeWrapper
, less
}:
stdenv.mkDerivation rec {
pname = "unison-code-manager";
milestone_id = "M1l";
milestone_id = "M1m";
version = "1.0.${milestone_id}-alpha";
src = if (stdenv.isDarwin) then
fetchurl {
url = "https://github.com/unisonweb/unison/releases/download/release/${milestone_id}/unison-osx.tar.gz";
sha256 = "0qbxakrp3p3k3k8a1m2g24ivs3c8j5rj7ij84i7k548505rva9qr";
sha256 = "06pxvp753j8pr0pn02l7cswmmas5pk1vlkw83yd04h3f2rx1s61v";
}
else
fetchurl {
url = "https://github.com/unisonweb/unison/releases/download/release/${milestone_id}/unison-linux64.tar.gz";
sha256 = "152yzv7j4nyp228ngzbhki9fid1xdqrjvl1rwxc05wq30jwwqx0x";
sha256 = "1qspvfq805d34kz031pf9sqw8kzz7h637kc8lnbjlgvwixxkxc7c";
};
# The tarball is just the prebuilt binary, in the archive root.
@ -23,12 +25,13 @@ stdenv.mkDerivation rec {
dontBuild = true;
dontConfigure = true;
nativeBuildInputs = stdenv.lib.optional (!stdenv.isDarwin) autoPatchelfHook;
nativeBuildInputs = [ makeWrapper ] ++ (stdenv.lib.optional (!stdenv.isDarwin) autoPatchelfHook);
buildInputs = stdenv.lib.optionals (!stdenv.isDarwin) [ ncurses5 zlib gmp ];
installPhase = ''
mkdir -p $out/bin
mv ucm $out/bin
wrapProgram $out/bin/ucm --prefix PATH ":" "${stdenv.lib.makeBinPath [ less ]}";
'';
meta = with stdenv.lib; {