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