2021-02-17 23:33:54 +01:00
|
|
|
{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
2021-05-04 00:57:35 +02:00
|
|
|
let
|
|
|
|
CuReSim = stdenv.mkDerivation rec {
|
|
|
|
name = "CuReSim";
|
|
|
|
version = "1.3";
|
|
|
|
src = fetchzip {
|
|
|
|
url =
|
|
|
|
"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}
|
|
|
|
makeWrapper ${pkgs.jdk}/bin/java $out/bin/CuReSim --add-flags "-jar $out/share/java/${name}/${name}.jar"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
in mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
R
|
|
|
|
rPackages.immuneSIM
|
|
|
|
rPackages.Biostrings
|
|
|
|
rPackages.stringr
|
|
|
|
jdk
|
|
|
|
CuReSim
|
|
|
|
];
|
2021-02-22 21:40:01 +01:00
|
|
|
}
|