Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 23 lines 613 B view raw
1{ lib, stdenv, fetchurl }: 2stdenv.mkDerivation rec { 3 pname = "libctb"; 4 version = "0.16"; 5 src = fetchurl { 6 url = "https://iftools.com/download/files/legacy/${pname}-${version}.tar.gz"; 7 sha256 = "027wh89d0qyly3d9m6rg4x7x1gqz3y3cnxlgk0k8xgygcrm05c0w"; 8 }; 9 patches = [ 10 ./include-kbhit.patch 11 ]; 12 sourceRoot = "${pname}-${version}/build"; 13 makeFlags = [ 14 "prefix=$(out)" 15 ]; 16 meta = with lib; { 17 description = "Communications toolbox"; 18 homepage = "https://iftools.com"; 19 license = licenses.lgpl2; 20 platforms = platforms.linux; 21 maintainers = [ maintainers.misuzu ]; 22 }; 23}