locigenesis/shell.nix

30 lines
791 B
Nix
Raw Permalink Normal View History

2021-11-02 16:11:17 +01:00
{ pkgs ? import <nixpkgs> { } }:
2021-02-17 23:33:54 +01:00
with pkgs;
2021-05-04 00:57:35 +02:00
let
CuReSim = stdenv.mkDerivation rec {
name = "CuReSim";
version = "1.3";
2021-11-02 16:11:17 +01:00
src = fetchzip { url =
2021-05-04 00:57:35 +02:00
"http://www.pegase-biosciences.com/wp-content/uploads/2015/08/${name}${version}.zip";
sha256 = "1hvlpgy4haqgqq52mkxhcl9i1fx67kgwi6f1mijvqzk0xff77hkp";
stripRoot = true;
extraPostFetch = ''
chmod go-w $out
'';
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -pv $out/share/java $out/bin
cp -r ${src} $out/share/java/${name}
2021-05-04 01:48:45 +02:00
makeWrapper ${jre}/bin/java $out/bin/CuReSim --add-flags "-jar $out/share/java/${name}/${name}.jar"
2021-05-04 00:57:35 +02:00
'';
};
in mkShell {
2021-05-04 01:48:45 +02:00
buildInputs =
[ R rPackages.immuneSIM rPackages.Biostrings rPackages.stringr CuReSim ];
}