This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
28 lines
622 B
Nix
28 lines
622 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "libctb";
|
|
version = "0.16";
|
|
src = fetchurl {
|
|
url = "https://iftools.com/download/files/legacy/${pname}-${version}.tar.gz";
|
|
sha256 = "027wh89d0qyly3d9m6rg4x7x1gqz3y3cnxlgk0k8xgygcrm05c0w";
|
|
};
|
|
patches = [
|
|
./include-kbhit.patch
|
|
];
|
|
sourceRoot = "${pname}-${version}/build";
|
|
makeFlags = [
|
|
"prefix=$(out)"
|
|
];
|
|
meta = {
|
|
description = "Communications toolbox";
|
|
homepage = "https://iftools.com";
|
|
license = lib.licenses.lgpl2;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ lib.maintainers.misuzu ];
|
|
};
|
|
}
|