uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
44
pkgs/applications/science/misc/cytoscape/default.nix
Normal file
44
pkgs/applications/science/misc/cytoscape/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenv, fetchurl, jre, makeWrapper, substituteAll, coreutils }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cytoscape";
|
||||
version = "3.9.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/cytoscape/cytoscape/releases/download/${version}/${pname}-unix-${version}.tar.gz";
|
||||
sha256 = "sha256-I4C2yGiIygnFUkRBC4LBSQFgjZlVKCoQGRphynVpscw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# By default, gen_vmoptions.sh tries to store custom options in $out/share
|
||||
# at run time. This patch makes sure $HOME is used instead.
|
||||
(substituteAll {
|
||||
src = ./gen_vmoptions_to_homedir.patch;
|
||||
inherit coreutils;
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ jre ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -pv $out/{share,bin}
|
||||
cp -Rv * $out/share/
|
||||
|
||||
ln -s $out/share/cytoscape.sh $out/bin/cytoscape
|
||||
|
||||
wrapProgram $out/share/cytoscape.sh \
|
||||
--set JAVA_HOME "${jre}" \
|
||||
--set JAVA "${jre}/bin/java"
|
||||
|
||||
chmod +x $out/bin/cytoscape
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.cytoscape.org";
|
||||
description = "A general platform for complex network analysis and visualization";
|
||||
license = lib.licenses.lgpl21;
|
||||
maintainers = [lib.maintainers.mimame];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
diff -Nur a/gen_vmoptions.sh b/gen_vmoptions.sh
|
||||
--- a/gen_vmoptions.sh 2020-03-30 21:57:47.000000000 +0100
|
||||
+++ b/gen_vmoptions.sh 2020-05-05 09:49:57.974989824 +0100
|
||||
@@ -1,13 +1,10 @@
|
||||
#!/bin/sh
|
||||
# Generates the Cytoscape.vmoptions file
|
||||
|
||||
-script_path="$(dirname -- $0)"
|
||||
-
|
||||
-#vm_options_path="$HOME/.cytoscape"
|
||||
-vm_options_path=$script_path
|
||||
+vm_options_path="$HOME/.cytoscape"
|
||||
|
||||
if [ ! -e $vm_options_path ]; then
|
||||
- /bin/mkdir $vm_options_path
|
||||
+ @coreutils@/bin/mkdir $vm_options_path
|
||||
fi
|
||||
|
||||
# Determine amount of physical memory present:
|
||||
Loading…
Add table
Add a link
Reference in a new issue