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
42
pkgs/applications/science/biology/bftools/default.nix
Normal file
42
pkgs/applications/science/biology/bftools/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ stdenv, lib, makeWrapper, fetchzip, jre }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bftools";
|
||||
version = "6.3.0";
|
||||
|
||||
src = fetchzip {
|
||||
url = "http://downloads.openmicroscopy.org/bio-formats/${version}/artifacts/bftools.zip";
|
||||
sha256 = "02nvvmpfglpah1ihd08aw65g1794w588c988cdar1hfl4s80qwhb";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
find . -maxdepth 1 -perm -111 -type f -not -name "*.sh" \
|
||||
-exec install -vD {} "$out"/bin/{} \;
|
||||
|
||||
mkdir $out/libexec
|
||||
mkdir -p $out/share/java
|
||||
|
||||
cp ./*.sh $out/libexec
|
||||
cp ./*.jar $out/share/java
|
||||
|
||||
for file in $out/bin/*; do
|
||||
substituteInPlace $file --replace "\$BF_DIR" $out/libexec
|
||||
done
|
||||
substituteInPlace $out/libexec/bf.sh --replace "\$BF_JAR_DIR" $out/share/java
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/libexec/bf.sh --prefix PATH : "${lib.makeBinPath [ jre ]}"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A bundle of scripts for using Bio-Formats on the command line with bioformats_package.jar already included";
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.all;
|
||||
homepage = "https://www.openmicroscopy.org/bio-formats/";
|
||||
maintainers = [ maintainers.tbenst ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue