minicom: fix paths to helper binaries and new upstream
This commit is contained in:
parent
da1a2b1eea
commit
358632e0d3
@ -1,17 +1,20 @@
|
|||||||
{ stdenv, fetchurl, autoreconfHook, pkgconfig
|
{ stdenv, fetchgit, autoreconfHook, makeWrapper, pkgconfig
|
||||||
, ncurses, libiconv }:
|
, lrzsz, ncurses, libiconv }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "minicom-2.7.1";
|
name = "minicom-${version}";
|
||||||
|
version = "2.7.1";
|
||||||
|
|
||||||
src = fetchurl {
|
# The repository isn't tagged properly, so we need to use commit refs
|
||||||
url = "https://alioth.debian.org/frs/download.php/latestfile/3/${name}.tar.gz";
|
src = fetchgit {
|
||||||
sha256 = "1wa1l36fa4npd21xa9nz60yrqwkk5cq713fa3p5v0zk7g9mq6bsk";
|
url = "https://salsa.debian.org/minicom-team/minicom.git";
|
||||||
|
rev = "6ea8033b6864aa35d14fb8b87e104e4f783635ce";
|
||||||
|
sha256 = "0j95727xni4r122dalp09963gvc1nqa18l1d4wzz8746kw5s2rrb";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ncurses ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;
|
buildInputs = [ ncurses ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
nativeBuildInputs = [ autoreconfHook makeWrapper pkgconfig ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
@ -26,18 +29,22 @@ stdenv.mkDerivation rec {
|
|||||||
# Have `configure' assume that the lock directory exists.
|
# Have `configure' assume that the lock directory exists.
|
||||||
substituteInPlace configure \
|
substituteInPlace configure \
|
||||||
--replace 'test -d $UUCPLOCK' true
|
--replace 'test -d $UUCPLOCK' true
|
||||||
|
'';
|
||||||
|
|
||||||
substituteInPlace src/rwconf.c \
|
postInstall = ''
|
||||||
--replace /usr/bin/ascii-xfr $out/bin/ascii-xfr
|
for f in $out/bin/*minicom ; do
|
||||||
|
wrapProgram $f \
|
||||||
|
--prefix PATH : ${stdenv.lib.makeBinPath [ lrzsz ]}:$out/bin
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Modem control and terminal emulation program";
|
description = "Modem control and terminal emulation program";
|
||||||
homepage = https://alioth.debian.org/projects/minicom/;
|
homepage = https://salsa.debian.org/minicom-team/minicom;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Minicom is a menu driven communications program. It emulates ANSI
|
Minicom is a menu driven communications program. It emulates ANSI
|
||||||
and VT102 terminals. It has a dialing directory and auto zmodem
|
and VT102 terminals. It has a dialing directory and auto zmodem
|
||||||
download.
|
download.
|
||||||
'';
|
'';
|
||||||
maintainers = with maintainers; [ peterhoeg ];
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user