2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchgit, ronn, mount }:
|
2019-08-09 23:44:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-11-29 18:24:13 +00:00
|
|
|
pname = "atinout";
|
2019-08-09 23:44:54 +00:00
|
|
|
version = "0.9.2-alpha";
|
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString (!stdenv.cc.isClang) "-Werror=implicit-fallthrough=0";
|
2021-05-11 20:44:54 +00:00
|
|
|
LANG = if stdenv.isDarwin then "en_US.UTF-8" else "C.UTF-8";
|
2019-08-09 23:44:54 +00:00
|
|
|
nativeBuildInputs = [ ronn mount ];
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.code.sf.net/p/atinout/code";
|
|
|
|
rev = "4976a6cb5237373b7e23cd02d7cd5517f306e3f6";
|
|
|
|
sha256 = "0bninv2bklz7ly140cxx8iyaqjlq809jjx6xqpimn34ghwsaxbpv";
|
|
|
|
};
|
|
|
|
|
2021-05-11 20:44:54 +00:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
|
2019-08-09 23:44:54 +00:00
|
|
|
installPhase = ''
|
|
|
|
make PREFIX=$out install
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-02-19 20:43:38 +00:00
|
|
|
homepage = "https://atinout.sourceforge.net";
|
2019-08-09 23:44:54 +00:00
|
|
|
description = "Tool for talking to modems";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ bendlas ];
|
|
|
|
};
|
|
|
|
}
|