Merge pull request #104809 from virusdave/dnicponski/scratch/update_ucm

unison-ucm 1.0.M1l-alpha -> 1.0.M1m-alpha
This commit is contained in:
Silvan Mosberger 2020-11-30 21:05:15 +01:00 committed by GitHub
commit 5420a92926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,7 @@
{ stdenv, fetchurl, autoPatchelfHook
, ncurses5, zlib, gmp
, makeWrapper
, less
}:
stdenv.mkDerivation rec {
@ -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; {