basex: 8.6.6 -> 9.4.3
This commit is contained in:
parent
1d83d90b39
commit
21b9c04a2c
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "basex";
|
pname = "basex";
|
||||||
version = "8.6.6";
|
version = "9.4.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://files.basex.org/releases/${version}/BaseX866.zip";
|
url = "http://files.basex.org/releases/${version}/BaseX${builtins.replaceStrings ["."] [""] version}.zip";
|
||||||
sha256 = "1kws6swisdaa17yhijjvkh2ikwz9rd5cw8mdjvkqw6vlcp1nq6m4";
|
hash = "sha256-IZhRg2JcYQXQKU/lYZpLLcsSdjZZO+toY5yvk+RKUCY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ unzip jre ];
|
buildInputs = [ unzip jre ];
|
||||||
@ -25,23 +25,15 @@ stdenv.mkDerivation rec {
|
|||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out"
|
|
||||||
cp -r * "$out"
|
|
||||||
|
|
||||||
# Remove Windows batch files (unclutter $out/bin)
|
# Remove Windows batch files (unclutter $out/bin)
|
||||||
rm -f "$out"/bin/*.bat
|
rm ./bin/*.bat
|
||||||
|
|
||||||
# Move some top-level stuff to $out/share/basex (unclutter $out)
|
mkdir -p $out/share/basex" "$out/share/applications"
|
||||||
mkdir -p "$out/share/basex"
|
|
||||||
mv "$out"/*.txt "$out/share/basex/"
|
|
||||||
mv "$out"/webapp "$out/share/basex/"
|
|
||||||
|
|
||||||
# Remove empty directories
|
cp -R bin etc lib webapp src BaseX.jar "$out"
|
||||||
rmdir "$out/repo"
|
cp -R readme.txt webapp "$out/share/basex"
|
||||||
rmdir "$out/data"
|
|
||||||
|
|
||||||
# Install desktop file
|
# Install desktop file
|
||||||
mkdir -p "$out/share/applications"
|
|
||||||
cp "$desktopItem"/share/applications/* "$out/share/applications/"
|
cp "$desktopItem"/share/applications/* "$out/share/applications/"
|
||||||
|
|
||||||
# Use substitutions instead of wrapper scripts
|
# Use substitutions instead of wrapper scripts
|
||||||
|
Loading…
Reference in New Issue
Block a user