about summary refs log tree commit diff
path: root/pkgs/development/libraries/elfio
diff options
context:
space:
mode:
authorPavol Rusnak <pavol@rusnak.io>2021-12-04 11:04:09 +0100
committerPavol Rusnak <pavol@rusnak.io>2021-12-05 10:09:20 +0100
commit3e231f033c5bd36ea23abaa7879c2d4a739995a4 (patch)
tree6842ec2a2d007b01129b12c2aa8734947acb65e8 /pkgs/development/libraries/elfio
parent6bd1daaf0fe8190a48ac5d27028ef8bed3891ec7 (diff)
elfio: init at 3.9
Diffstat (limited to 'pkgs/development/libraries/elfio')
-rw-r--r--pkgs/development/libraries/elfio/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/libraries/elfio/default.nix b/pkgs/development/libraries/elfio/default.nix
new file mode 100644
index 0000000000000..98e9ee3f59ed5
--- /dev/null
+++ b/pkgs/development/libraries/elfio/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, cmake
+, boost
+}:
+
+stdenv.mkDerivation rec {
+  pname = "elfio";
+  version = "3.9";
+
+  src = fetchFromGitHub {
+    owner = "serge1";
+    repo = "elfio";
+    rev = "Release_${version}";
+    sha256 = "sha256-5O9KnHZXzepp3O1PGenJarrHElWLHgyBvvDig1Hkmo4=";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  checkInputs = [ boost ];
+
+  cmakeFlags = [ "-DELFIO_BUILD_TESTS=ON" ];
+
+  doCheck = true;
+
+  meta = with lib; {
+    description = "Header-only C++ library for reading and generating files in the ELF binary format";
+    homepage = "https://github.com/serge1/ELFIO";
+    license = licenses.mit;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ prusnak ];
+  };
+}