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
77
pkgs/applications/editors/xxe-pe/default.nix
Normal file
77
pkgs/applications/editors/xxe-pe/default.nix
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
{ stdenv
|
||||
, fetchurl
|
||||
, lib
|
||||
, unzip
|
||||
, makeWrapper
|
||||
, openjdk11
|
||||
, makeDesktopItem
|
||||
, icoutils
|
||||
, config
|
||||
, acceptLicense ? config.xxe-pe.acceptLicense or false
|
||||
}:
|
||||
|
||||
let
|
||||
pkg_path = "$out/lib/xxe";
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "XMLmind XML Editor Personal Edition";
|
||||
exec = "xxe";
|
||||
icon = "xxe";
|
||||
desktopName = "xxe";
|
||||
genericName = "XML Editor";
|
||||
categories = [ "Development" "IDE" "TextEditor" "Java" ];
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xxe-pe";
|
||||
version = "10.1.0";
|
||||
|
||||
src =
|
||||
assert !acceptLicense -> throw ''
|
||||
You must accept the XMLmind XML Editor Personal Edition License at
|
||||
https://www.xmlmind.com/xmleditor/license_xxe_perso.html
|
||||
by setting nixpkgs config option `xxe-pe.acceptLicense = true;`
|
||||
or by using `xxe-pe.override { acceptLicense = true; }` package.
|
||||
'';
|
||||
fetchurl {
|
||||
url = "https://www.xmlmind.com/xmleditor/_download/xxe-perso-${builtins.replaceStrings [ "." ] [ "_" ] version}.zip";
|
||||
sha256 = "sha256-AeyaJSEJQQJ/XxvaIky4fnEr+7fVAEqhSxtYhN8L2JA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
unzip
|
||||
makeWrapper
|
||||
icoutils
|
||||
];
|
||||
|
||||
dontStrip = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "${pkg_path}"
|
||||
mkdir -p "${pkg_path}" "$out/share/applications"
|
||||
cp -a * "${pkg_path}"
|
||||
ln -s ${desktopItem}/share/applications/* $out/share/applications
|
||||
|
||||
icotool -x "${pkg_path}/bin/icon/xxe.ico"
|
||||
ls
|
||||
for f in xxe_*.png; do
|
||||
res=$(basename "$f" ".png" | cut -d"_" -f3 | cut -d"x" -f1-2)
|
||||
mkdir -pv "$out/share/icons/hicolor/$res/apps"
|
||||
mv "$f" "$out/share/icons/hicolor/$res/apps/xxe.png"
|
||||
done;
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
mkdir -p "$out/bin"
|
||||
makeWrapper "${pkg_path}/bin/xxe" "$out/bin/xxe" \
|
||||
--prefix PATH : ${lib.makeBinPath [ openjdk11 ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Strictly validating, near WYSIWYG, XML editor with DocBook support";
|
||||
homepage = "https://www.xmlmind.com/xmleditor/";
|
||||
license = licenses.unfree;
|
||||
maintainers = [ maintainers.jtojnar ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue