summary refs log tree commit diff
path: root/pkgs/applications/science/biology
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2018-04-27 18:52:46 -0400
committerBen Darwin <bcdarwin@gmail.com>2018-04-27 18:57:17 -0400
commitfa850e8fda68c92984760f9ff9086e8cde6ef835 (patch)
treeb463e75ec9a49e3488aad4ed60f5467286b4dbf9 /pkgs/applications/science/biology
parent7b75efa231e6e68c8e08d3f3eebff8ab30986ede (diff)
downloadnixlib-fa850e8fda68c92984760f9ff9086e8cde6ef835.tar
nixlib-fa850e8fda68c92984760f9ff9086e8cde6ef835.tar.gz
nixlib-fa850e8fda68c92984760f9ff9086e8cde6ef835.tar.bz2
nixlib-fa850e8fda68c92984760f9ff9086e8cde6ef835.tar.lz
nixlib-fa850e8fda68c92984760f9ff9086e8cde6ef835.tar.xz
nixlib-fa850e8fda68c92984760f9ff9086e8cde6ef835.tar.zst
nixlib-fa850e8fda68c92984760f9ff9086e8cde6ef835.zip
conglomerate: init at 2017-09-10
Diffstat (limited to 'pkgs/applications/science/biology')
-rw-r--r--pkgs/applications/science/biology/conglomerate/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/science/biology/conglomerate/default.nix b/pkgs/applications/science/biology/conglomerate/default.nix
new file mode 100644
index 000000000000..c04bc84c156d
--- /dev/null
+++ b/pkgs/applications/science/biology/conglomerate/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchFromGitHub, cmake, coreutils, perl, bicpl, libminc, zlib, minc_tools,
+  makeWrapper, GetoptTabular, MNI-Perllib }:
+
+stdenv.mkDerivation rec {
+  pname = "conglomerate";
+  name  = "${pname}-2017-09-10";
+
+  src = fetchFromGitHub {
+    owner  = "BIC-MNI";
+    repo   = pname;
+    rev    = "7343238bc6215942c7ecc885a224f24433a291b0";
+    sha256 = "1mlqgmy3jc13bv7d01rjwldxq0p4ayqic85xcl222hhifi3w2prr";
+  };
+
+  nativeBuildInputs = [ cmake makeWrapper ];
+  buildInputs = [ libminc zlib bicpl ];
+  propagatedBuildInputs = [ coreutils minc_tools perl GetoptTabular MNI-Perllib ];
+
+  cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/" "-DBICPL_DIR=${bicpl}/lib/" ];
+
+  postFixup = ''
+    for p in $out/bin/*; do
+      wrapProgram $p --prefix PERL5LIB : $PERL5LIB --set PATH "${stdenv.lib.makeBinPath [ coreutils minc_tools ]}";
+    done
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/BIC-MNI/conglomerate;
+    description = "More command-line utilities for working with MINC files";
+    maintainers = with maintainers; [ bcdarwin ];
+    platforms = platforms.unix;
+    license   = licenses.free;
+  };
+}