about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/xylib
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/xylib')
-rw-r--r--nixpkgs/pkgs/development/libraries/xylib/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/xylib/default.nix b/nixpkgs/pkgs/development/libraries/xylib/default.nix
new file mode 100644
index 000000000000..ab2e3792eeab
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/xylib/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, stdenv
+, fetchurl
+, boost
+, zlib
+, bzip2
+, wxGTK32
+}:
+
+stdenv.mkDerivation rec {
+  pname = "xylib";
+  version = "1.6";
+
+  src = fetchurl {
+    url = "https://github.com/wojdyr/xylib/releases/download/v${version}/${pname}-${version}.tar.bz2";
+    sha256 = "1iqfrfrk78mki5csxysw86zm35ag71w0jvim0f12nwq1z8rwnhdn";
+  };
+
+  buildInputs = [
+    boost
+    zlib
+    bzip2
+    wxGTK32
+  ];
+
+  meta = with lib; {
+    description = "Portable library for reading files that contain x-y data from powder diffraction, spectroscopy and other experimental methods";
+    license = licenses.lgpl21;
+    homepage = "https://xylib.sourceforge.net/";
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ pSub ];
+  };
+}