default.nix (672B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 boost, 7 gsl-lite, 8 }: 9 10 stdenv.mkDerivation (finalAttrs: { 11 pname = "serverpp"; 12 version = "0.2.0"; 13 14 src = fetchFromGitHub { 15 owner = "KazDragon"; 16 repo = "serverpp"; 17 rev = "v${finalAttrs.version}"; 18 hash = "sha256-z7aLE7RyRGwUCpnJr0NS6yXUBPtHTnd81JOI/tGHDo0="; 19 }; 20 21 nativeBuildInputs = [ cmake ]; 22 23 buildInputs = [ 24 boost 25 gsl-lite 26 ]; 27 28 meta = { 29 description = "A C++ library for basic network server handling"; 30 homepage = "https://github.com/KazDragon/serverpp"; 31 license = lib.licenses.mit; 32 maintainers = [ lib.maintainers.sikmir ]; 33 platforms = lib.platforms.unix; 34 }; 35 })