Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ed57afc79d2b
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a4ec5e4ca95a
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Mar 19, 2019

  1. Copy the full SHA
    358632e View commit details

Commits on Apr 3, 2019

  1. Merge pull request #57845 from peterhoeg/u/minicom

    minicom: wrap required binaries
    peterhoeg authored Apr 3, 2019
    Copy the full SHA
    a4ec5e4 View commit details
Showing with 20 additions and 13 deletions.
  1. +20 −13 pkgs/tools/misc/minicom/default.nix
33 changes: 20 additions & 13 deletions pkgs/tools/misc/minicom/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{ stdenv, fetchurl, autoreconfHook, pkgconfig
, ncurses, libiconv }:
{ stdenv, fetchgit, autoreconfHook, makeWrapper, pkgconfig
, lrzsz, ncurses, libiconv }:

stdenv.mkDerivation rec {
name = "minicom-2.7.1";

src = fetchurl {
url = "https://alioth.debian.org/frs/download.php/latestfile/3/${name}.tar.gz";
sha256 = "1wa1l36fa4npd21xa9nz60yrqwkk5cq713fa3p5v0zk7g9mq6bsk";
name = "minicom-${version}";
version = "2.7.1";

# The repository isn't tagged properly, so we need to use commit refs
src = fetchgit {
url = "https://salsa.debian.org/minicom-team/minicom.git";
rev = "6ea8033b6864aa35d14fb8b87e104e4f783635ce";
sha256 = "0j95727xni4r122dalp09963gvc1nqa18l1d4wzz8746kw5s2rrb";
};

buildInputs = [ ncurses ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;

nativeBuildInputs = [ autoreconfHook pkgconfig ];
nativeBuildInputs = [ autoreconfHook makeWrapper pkgconfig ];

enableParallelBuilding = true;

@@ -26,18 +29,22 @@ stdenv.mkDerivation rec {
# Have `configure' assume that the lock directory exists.
substituteInPlace configure \
--replace 'test -d $UUCPLOCK' true
'';

substituteInPlace src/rwconf.c \
--replace /usr/bin/ascii-xfr $out/bin/ascii-xfr
postInstall = ''
for f in $out/bin/*minicom ; do
wrapProgram $f \
--prefix PATH : ${stdenv.lib.makeBinPath [ lrzsz ]}:$out/bin
done
'';

meta = with stdenv.lib; {
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;
longDescription = ''
Minicom is a menu driven communications program. It emulates ANSI
and VT102 terminals. It has a dialing directory and auto zmodem
Minicom is a menu driven communications program. It emulates ANSI
and VT102 terminals. It has a dialing directory and auto zmodem
download.
'';
maintainers = with maintainers; [ peterhoeg ];