Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5, boost 6}: 7 8stdenv.mkDerivation rec { 9 pname = "elfio"; 10 version = "3.10"; 11 12 src = fetchFromGitHub { 13 owner = "serge1"; 14 repo = "elfio"; 15 rev = "Release_${version}"; 16 sha256 = "sha256-DuZhkiHXdCplRiOy1Gsu7voVPdCbFt+4qFqlOeOeWQw="; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 21 nativeCheckInputs = [ boost ]; 22 23 cmakeFlags = [ "-DELFIO_BUILD_TESTS=ON" ]; 24 25 doCheck = true; 26 27 meta = with lib; { 28 description = "Header-only C++ library for reading and generating files in the ELF binary format"; 29 homepage = "https://github.com/serge1/ELFIO"; 30 license = licenses.mit; 31 platforms = platforms.unix; 32 maintainers = with maintainers; [ prusnak ]; 33 }; 34}