Take in the two Nix files.
This commit is contained in:
commit
37f518a79a
2 changed files with 53 additions and 0 deletions
45
ginsim.nix
Normal file
45
ginsim.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
# ginsim.nix
|
||||
#
|
||||
# Packages GINsim.
|
||||
#
|
||||
# You can build this file with the following command:
|
||||
#
|
||||
# nix-build ginsim.nix
|
||||
#
|
||||
# Or you can use in a nix-shell as shell.nix in the same directory
|
||||
# illustrates.
|
||||
|
||||
let
|
||||
pkgs = import <nixpkgs> {};
|
||||
in
|
||||
{ stdenv ? pkgs.stdenv, fetchurl ? pkgs.fetchurl, makeWrapper ? pkgs.makeWrapper, jre ? pkgs.jre }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "GINsim";
|
||||
version = "2.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ginsim.org/sites/default/files/${name}-${version}.jar";
|
||||
sha256 = "0891q75hli6ghgangscygkqw60x9ikx96i8y4fqca6kdh1xgs15h";
|
||||
};
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -pv $out/share/java $out/bin
|
||||
cp ${src} $out/share/java/${name}-${version}.jar
|
||||
|
||||
makeWrapper ${jre}/bin/java $out/bin/GINsim \
|
||||
--add-flags "-jar $out/share/java/${name}-${version}.jar" \
|
||||
--set _JAVA_OPTIONS '-Dawt.useSystemAAFontSettings=on' \
|
||||
--set _JAVA_AWT_WM_NONREPARENTING 1
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://ginsim.org/";
|
||||
description = "A computer tool for the modeling and simulation of genetic regulatory networks.";
|
||||
license = stdenv.lib.licenses.gpl3;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
8
shell.nix
Normal file
8
shell.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
with import <nixpkgs> {};
|
||||
let
|
||||
ginsim = callPackage ./ginsim.nix {};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "GINsim-shell";
|
||||
buildInputs = [ ginsim ];
|
||||
}
|
Loading…
Reference in a new issue