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
62
pkgs/applications/science/chemistry/jmol/default.nix
Normal file
62
pkgs/applications/science/chemistry/jmol/default.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, unzip
|
||||
, makeDesktopItem
|
||||
, jre
|
||||
}:
|
||||
|
||||
let
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "jmol";
|
||||
exec = "jmol";
|
||||
desktopName = "JMol";
|
||||
genericName = "Molecular Modeler";
|
||||
mimeTypes = [
|
||||
"chemical/x-pdb"
|
||||
"chemical/x-mdl-molfile"
|
||||
"chemical/x-mol2"
|
||||
"chemical/seq-aa-fasta"
|
||||
"chemical/seq-na-fasta"
|
||||
"chemical/x-xyz"
|
||||
"chemical/x-mdl-sdf"
|
||||
];
|
||||
categories = [ "Graphics" "Education" "Science" "Chemistry" ];
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
version = "14.32.45";
|
||||
pname = "jmol";
|
||||
|
||||
src = let
|
||||
baseVersion = "${lib.versions.major version}.${lib.versions.minor version}";
|
||||
in fetchurl {
|
||||
url = "mirror://sourceforge/jmol/Jmol/Version%20${baseVersion}/Jmol%20${version}/Jmol-${version}-binary.tar.gz";
|
||||
sha256 = "sha256-9bcOwORHLZfn95RFur4JdP3Djpq8K8utnWIsniqKAI4=";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
sed -i -e "4s:.*:command=${jre}/bin/java:" -e "10s:.*:jarpath=$out/share/jmol/Jmol.jar:" -e "11,21d" jmol
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/share/jmol" "$out/bin"
|
||||
|
||||
${unzip}/bin/unzip jsmol.zip -d "$out/share/"
|
||||
|
||||
cp *.jar jmol.sh "$out/share/jmol"
|
||||
cp -r ${desktopItem}/share/applications $out/share
|
||||
cp jmol $out/bin
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Java 3D viewer for chemical structures";
|
||||
homepage = "https://sourceforge.net/projects/jmol";
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
license = licenses.lgpl2;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ mounium ] ++ teams.sage.members;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue