Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6}: 7stdenv.mkDerivation { 8 pname = "gsmlib"; 9 version = "unstable-2017-10-06"; 10 11 src = fetchFromGitHub { 12 owner = "x-logLT"; 13 repo = "gsmlib"; 14 rev = "4f794b14450132f81673f7d3570c5a859aecf7ae"; 15 sha256 = "16v8aj914ac1ipf14a867ljib3gy7fhzd9ypxnsg9l0zi8mm3ml5"; 16 }; 17 18 nativeBuildInputs = [ autoreconfHook ]; 19 20 env.NIX_CFLAGS_COMPILE = toString [ 21 # Needed with GCC 12 22 "-std=c++14" 23 ]; 24 25 meta = with lib; { 26 description = "Library to access GSM mobile phones through GSM modems"; 27 homepage = "https://github.com/x-logLT/gsmlib"; 28 license = licenses.lgpl2; 29 platforms = platforms.linux; 30 maintainers = [ maintainers.misuzu ]; 31 }; 32}